function DevelElementInfoTest::testElementInfoMenuLink

Same name and namespace in other branches
  1. 5.x tests/src/Functional/DevelElementInfoTest.php \Drupal\Tests\devel\Functional\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\Functional

Code

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