protected function MenuRouterTest::doTestTitleCallbackFalse in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php \Drupal\Tests\system\Functional\Menu\MenuRouterTest::doTestTitleCallbackFalse()
Test title callback set to FALSE.
File
- core/
modules/ system/ tests/ src/ Functional/ Menu/ MenuRouterTest.php, line 80
Class
- MenuRouterTest
- Tests menu router and default menu link functionality.
Namespace
Drupal\Tests\system\Functional\MenuCode
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', [
'@placeholder' => 'some other text',
]), 'Text with placeholder substitutions not found.');
}