From 8ae9b6f6d82642e6b608843c5e7508f995de00e7 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 20 Apr 2011 22:29:50 -0400 Subject: - Patch #965272 by larowlan, bellHead, TR: items defined with type MENU_CALLBACK show 'Home' as a title. --- modules/simpletest/tests/menu.test | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'modules/simpletest/tests/menu.test') diff --git a/modules/simpletest/tests/menu.test b/modules/simpletest/tests/menu.test index 24c002356..2578bebc0 100644 --- a/modules/simpletest/tests/menu.test +++ b/modules/simpletest/tests/menu.test @@ -33,6 +33,18 @@ class MenuRouterTestCase extends DrupalWebTestCase { $this->assertNoText(t('A title with @placeholder', array('@placeholder' => 'some other text')), t('Text with placeholder substitutions not found.')); } + /** + * Tests page title of MENU_CALLBACKs. + */ + function testTitleMenuCallback() { + // Verify that the menu router item title is not visible. + $this->drupalGet(''); + $this->assertNoText(t('Menu Callback Title')); + // Verify that the menu router item title is output as page title. + $this->drupalGet('menu_callback_title'); + $this->assertText(t('Menu Callback Title')); + } + /** * Test the theme callback when it is set to use an administrative theme. */ -- cgit v1.2.3