public function DevelElementInfoTest::testElementInfoMenuLink in Devel 8
Same name and namespace in other branches
- 8.3 tests/src/Functional/DevelElementInfoTest.php \Drupal\Tests\devel\Functional\DevelElementInfoTest::testElementInfoMenuLink()
- 8.2 tests/src/Functional/DevelElementInfoTest.php \Drupal\Tests\devel\Functional\DevelElementInfoTest::testElementInfoMenuLink()
- 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 44
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');
}