You are here

public function DevelElementInfoTest::testElementInfoMenuLink in Devel 8.3

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