You are here

public function DevelContainerInfoTest::testContainerInfoMenuLink in Devel 8

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/DevelContainerInfoTest.php \Drupal\Tests\devel\Functional\DevelContainerInfoTest::testContainerInfoMenuLink()
  2. 8.2 tests/src/Functional/DevelContainerInfoTest.php \Drupal\Tests\devel\Functional\DevelContainerInfoTest::testContainerInfoMenuLink()
  3. 4.x tests/src/Functional/DevelContainerInfoTest.php \Drupal\Tests\devel\Functional\DevelContainerInfoTest::testContainerInfoMenuLink()

Tests container info menu link.

File

tests/src/Functional/DevelContainerInfoTest.php, line 45

Class

DevelContainerInfoTest
Tests container info pages and links.

Namespace

Drupal\Tests\devel\Functional

Code

public function testContainerInfoMenuLink() {
  $this
    ->drupalPlaceBlock('system_menu_block:devel');

  // Ensures that the events info link is present on the devel menu and that
  // it points to the correct page.
  $this
    ->drupalGet('');
  $this
    ->clickLink('Container Info');
  $this
    ->assertSession()
    ->statusCodeEquals(200);
  $this
    ->assertSession()
    ->addressEquals('/devel/container/service');
  $this
    ->assertSession()
    ->pageTextContains('Container services');
}