diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-07-08 03:41:27 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-07-08 03:41:27 +0000 |
commit | 8f5c296cc08ee58206d204f61fe13abbbe050baf (patch) | |
tree | df85fe532263b63fa5a911221a138a62440cfd5a /modules/node/node.test | |
parent | 893fba439bd0fa2d17075715a383a374ff2a4cc6 (diff) | |
download | brdo-8f5c296cc08ee58206d204f61fe13abbbe050baf.tar.gz brdo-8f5c296cc08ee58206d204f61fe13abbbe050baf.tar.bz2 |
#845742 by Damien Tournoud: Make Bartik the default core theme.
Diffstat (limited to 'modules/node/node.test')
-rw-r--r-- | modules/node/node.test | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/node/node.test b/modules/node/node.test index 7369b8699..f5d3aefe2 100644 --- a/modules/node/node.test +++ b/modules/node/node.test @@ -678,7 +678,8 @@ class NodePostSettingsTestCase extends DrupalWebTestCase { // Check that the post information is displayed. $node = $this->drupalGetNodeByTitle($edit["title"]); - $this->assertRaw('<span class="submitted">', t('Post information is displayed.')); + $elements = $this->xpath('//div[contains(@class,:class)]', array(':class' => 'submitted')); + $this->assertEqual(count($elements), 1, t('Post information is displayed.')); } /** @@ -1474,8 +1475,10 @@ class NodeBlockFunctionalTest extends DrupalWebTestCase { $custom_block['title'] = $this->randomName(); $custom_block['types[article]'] = TRUE; $custom_block['body[value]'] = $this->randomName(32); - $custom_block['regions[garland]'] = 'content'; - $custom_block['regions[seven]'] = 'content'; + $custom_block['regions[' . variable_get('theme_default', 'bartik') . ']'] = 'content'; + if ($admin_theme = variable_get('admin_theme')) { + $custom_block['regions[' . $admin_theme . ']'] = 'content'; + } $this->drupalPost('admin/structure/block/add', $custom_block, t('Save block')); $bid = db_query("SELECT bid FROM {block_custom} WHERE info = :info", array(':info' => $custom_block['info']))->fetchField(); |