public function DevelEventInfoTest::testEventsInfoMenuLink in Devel 8
Same name and namespace in other branches
- 8.3 tests/src/Functional/DevelEventInfoTest.php \Drupal\Tests\devel\Functional\DevelEventInfoTest::testEventsInfoMenuLink()
- 8.2 tests/src/Functional/DevelEventInfoTest.php \Drupal\Tests\devel\Functional\DevelEventInfoTest::testEventsInfoMenuLink()
- 4.x tests/src/Functional/DevelEventInfoTest.php \Drupal\Tests\devel\Functional\DevelEventInfoTest::testEventsInfoMenuLink()
Tests event info menu link.
File
- tests/
src/ Functional/ DevelEventInfoTest.php, line 42
Class
- DevelEventInfoTest
- Tests event info pages and links.
Namespace
Drupal\Tests\devel\FunctionalCode
public function testEventsInfoMenuLink() {
$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('Events Info');
$this
->assertSession()
->statusCodeEquals(200);
$this
->assertSession()
->addressEquals('/devel/events');
$this
->assertSession()
->pageTextContains('Events');
}