public function DevelLayoutInfoTest::testLayoutsInfoMenuLink in Devel 8
Same name and namespace in other branches
- 8.3 tests/src/Functional/DevelLayoutInfoTest.php \Drupal\Tests\devel\Functional\DevelLayoutInfoTest::testLayoutsInfoMenuLink()
- 8.2 tests/src/Functional/DevelLayoutInfoTest.php \Drupal\Tests\devel\Functional\DevelLayoutInfoTest::testLayoutsInfoMenuLink()
- 4.x tests/src/Functional/DevelLayoutInfoTest.php \Drupal\Tests\devel\Functional\DevelLayoutInfoTest::testLayoutsInfoMenuLink()
Tests layout info menu link.
File
- tests/
src/ Functional/ DevelLayoutInfoTest.php, line 47
Class
- DevelLayoutInfoTest
- Tests layout info pages and links.
Namespace
Drupal\Tests\devel\FunctionalCode
public function testLayoutsInfoMenuLink() {
$this
->drupalPlaceBlock('system_menu_block:devel');
// Ensures that the layout info link is present on the devel menu and that
// it points to the correct page.
$this
->drupalGet('');
$this
->clickLink('Layouts Info');
$this
->assertSession()
->statusCodeEquals(200);
$this
->assertSession()
->addressEquals('/devel/layouts');
$this
->assertSession()
->pageTextContains('Layout');
}