function DevelElementInfoTest::testElementInfoMenuLink
Tests element info menu link.
File
-
tests/
src/ Functional/ DevelElementInfoTest.php, line 28
Class
- DevelElementInfoTest
- Tests element info pages and links.
Namespace
Drupal\Tests\devel\FunctionalCode
public function testElementInfoMenuLink() {
$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');
}