function RouterTest::testTitleCallbackFalse

Test title callback set to FALSE.

File

drupal/core/modules/system/lib/Drupal/system/Tests/Menu/RouterTest.php, line 64
Definition of Drupal\system\Tests\Menu\RouterTest.

Class

RouterTest
Tests menu router and hook_menu() functionality.

Namespace

Drupal\system\Tests\Menu

Code

function testTitleCallbackFalse() {
  $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.');
}