function DevelEntityTypeInfoTest::testEntityInfoMenuLink

Same name in other branches
  1. 5.x tests/src/Functional/DevelEntityTypeInfoTest.php \Drupal\Tests\devel\Functional\DevelEntityTypeInfoTest::testEntityInfoMenuLink()

Tests entity info menu link.

File

tests/src/Functional/DevelEntityTypeInfoTest.php, line 28

Class

DevelEntityTypeInfoTest
Tests entity type info pages and links.

Namespace

Drupal\Tests\devel\Functional

Code

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');
}