function MenuRouterTest::doTestTitleCallbackFalse

Same name in other branches
  1. 9 core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php \Drupal\Tests\system\Functional\Menu\MenuRouterTest::doTestTitleCallbackFalse()
  2. 8.9.x core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php \Drupal\Tests\system\Functional\Menu\MenuRouterTest::doTestTitleCallbackFalse()
  3. 10 core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php \Drupal\Tests\system\Functional\Menu\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() : void {
    $this->drupalGet('test-page');
    $this->assertSession()
        ->pageTextContains('A title with @placeholder');
    $this->assertSession()
        ->pageTextNotContains('A title with some other text');
}

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