From 8f5c296cc08ee58206d204f61fe13abbbe050baf Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 8 Jul 2010 03:41:27 +0000 Subject: #845742 by Damien Tournoud: Make Bartik the default core theme. --- modules/node/node.test | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'modules/node/node.test') 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('', 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(); -- cgit v1.2.3