function MenuRouterTestCase::testTitleMenuCallback
Tests page title of MENU_CALLBACKs.
File
-
modules/
simpletest/ tests/ menu.test, line 155
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'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.