You are here

function MenuRouterTestCase::testTitleMenuCallback in Drupal 7

Tests page title of MENU_CALLBACKs.

File

modules/simpletest/tests/menu.test, line 155
Provides SimpleTests for menu.inc.

Class

MenuRouterTestCase

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'));
}