public function EntityLocalActionTest::testCollectionLocalAction in Entity API 8
Tests the local action on the collection is provided correctly.
File
- tests/
src/ Functional/ Menu/ EntityLocalActionTest.php, line 43
Class
- EntityLocalActionTest
- Tests that entity local actions are generated correctly.
Namespace
Drupal\Tests\entity\Functional\MenuCode
public function testCollectionLocalAction() {
$this
->drupalGet('/entity_test_enhanced');
$this
->assertSession()
->linkByHrefExists('/entity_test_enhanced/add?destination=/entity_test_enhanced');
$this
->assertSession()
->linkExists('Add enhanced entity');
}