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