You are here

public function DevelEntityTypeInfoTest::testEntityInfoMenuLink in Devel 8.3

Same name and namespace in other branches
  1. 8 tests/src/Functional/DevelEntityTypeInfoTest.php \Drupal\Tests\devel\Functional\DevelEntityTypeInfoTest::testEntityInfoMenuLink()
  2. 8.2 tests/src/Functional/DevelEntityTypeInfoTest.php \Drupal\Tests\devel\Functional\DevelEntityTypeInfoTest::testEntityInfoMenuLink()
  3. 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 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');
}