You are here

function MenuRouterTestCase::testTitleCallbackFalse in Drupal 7

Test title callback set to FALSE.

File

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

Class

MenuRouterTestCase

Code

function testTitleCallbackFalse() {
  $this
    ->drupalGet('node');
  $this
    ->assertText('A title with @placeholder', 'Raw text found on the page');
  $this
    ->assertNoText(t('A title with @placeholder', array(
    '@placeholder' => 'some other text',
  )), 'Text with placeholder substitutions not found.');
}