drupalPlaceBlock('local_actions_block'); $account = $this->drupalCreateUser(['administer entity_test_enhanced']); $this->drupalLogin($account); } /** * Tests the local action on the collection is provided correctly. */ public function testCollectionLocalAction() { $this->drupalGet('/entity_test_enhanced'); $this->assertSession()->linkByHrefExists('/entity_test_enhanced/add'); $this->assertSession()->linkExists('Add enhanced entity'); } }