From 886cc50e75cc045bfce6e655a169f996b0cd5f5c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 1 Dec 2009 00:39:35 +0000 Subject: =?UTF-8?q?-=20Patch=20#491214=20by=20JohnAlbin,=20G=C3=A1bor=20Ho?= =?UTF-8?q?jtsy,=20eigentor:=20implement=20a=20more=20usable=20top=20level?= =?UTF-8?q?=20Appearance=20page.=20Yay.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/simpletest/tests/menu.test | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'modules/simpletest/tests') diff --git a/modules/simpletest/tests/menu.test b/modules/simpletest/tests/menu.test index c601b111f..cab0dc9aa 100644 --- a/modules/simpletest/tests/menu.test +++ b/modules/simpletest/tests/menu.test @@ -80,10 +80,7 @@ class MenuIncTestCase extends DrupalWebTestCase { $this->assertRaw('garland/style.css', t("The default theme's CSS appears on the page.")); // Now enable the theme and request it again. - $admin_user = $this->drupalCreateUser(array('administer site configuration')); - $this->drupalLogin($admin_user); - $this->drupalPost('admin/appearance', array('status[stark]' => 1), t('Save configuration')); - $this->drupalLogout(); + theme_enable(array('stark')); $this->drupalGet('menu-test/theme-callback/use-stark-theme'); $this->assertText('Requested theme: stark. Actual theme: stark.', t('The theme callback system uses an optional theme once it has been enabled.')); $this->assertRaw('stark/layout.css', t("The optional theme's CSS appears on the page.")); -- cgit v1.2.3