function MenuRouterTestCase::testTitleMenuCallback in Drupal 7
Tests page title of MENU_CALLBACKs.
File
Class
Code
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'));
}