You are here

protected function MenuRouterTest::doTestTitleCallbackFalse in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Menu/MenuRouterTest.php \Drupal\system\Tests\Menu\MenuRouterTest::doTestTitleCallbackFalse()

Test title callback set to FALSE.

File

core/modules/system/src/Tests/Menu/MenuRouterTest.php, line 87
Contains \Drupal\system\Tests\Menu\MenuRouterTest.

Class

MenuRouterTest
Tests menu router and default menu link functionality.

Namespace

Drupal\system\Tests\Menu

Code

protected function doTestTitleCallbackFalse() {
  $this
    ->drupalGet('test-page');
  $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.');
}