function MenuRouterTest::doTestTitleCallbackFalse

Tests title callback set to FALSE.

File

core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php, line 83

Class

MenuRouterTest
Tests menu router and default menu link functionality.

Namespace

Drupal\Tests\system\Functional\Menu

Code

protected function doTestTitleCallbackFalse() {
  $this->drupalGet('test-page');
  $this->assertSession()
    ->pageTextContains('A title with @placeholder', 'Raw text found on the page');
  $this->assertSession()
    ->pageTextNotContains('A title with some other text', 'Text with placeholder substitutions not found.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.