function DevelElementInfoTest::testElementInfoMenuLink
Same name in other branches
- 4.x tests/src/Functional/DevelElementInfoTest.php \Drupal\Tests\devel\Functional\DevelElementInfoTest::testElementInfoMenuLink()
Tests element info menu link.
File
-
tests/
src/ Functional/ DevelElementInfoTest.php, line 31
Class
- DevelElementInfoTest
- Tests element info pages and links.
Namespace
Drupal\Tests\devel\FunctionalCode
public function testElementInfoMenuLink() : void {
$this->drupalPlaceBlock('system_menu_block:devel');
// Ensures that the element info link is present on the devel menu and that
// it points to the correct page.
$this->drupalGet('');
$this->clickLink('Element Info');
$this->assertSession()
->statusCodeEquals(200);
$this->assertSession()
->addressEquals('/devel/elements');
$this->assertSession()
->pageTextContains('Element Info');
}