public function ToolbarAdminMenuTest::testBackToSiteLink in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/toolbar/src/Tests/ToolbarAdminMenuTest.php \Drupal\toolbar\Tests\ToolbarAdminMenuTest::testBackToSiteLink()
Test that back to site link exists on admin pages, not on content pages.
File
- core/
modules/ toolbar/ src/ Tests/ ToolbarAdminMenuTest.php, line 371 - Contains \Drupal\toolbar\Tests\ToolbarAdminMenuTest.
Class
- ToolbarAdminMenuTest
- Tests the caching of the admin menu subtree items.
Namespace
Drupal\toolbar\TestsCode
public function testBackToSiteLink() {
// Back to site link should exist in the markup.
$this
->drupalGet('test-page');
$back_link = $this
->cssSelect('.home-toolbar-tab');
$this
->assertTrue($back_link);
}