public function EntityViewsDataTest::testEntityLinksJustEditForm in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/tests/src/Unit/EntityViewsDataTest.php \Drupal\Tests\views\Unit\EntityViewsDataTest::testEntityLinksJustEditForm()
Tests additional edit links.
File
- core/
modules/ views/ tests/ src/ Unit/ EntityViewsDataTest.php, line 787 - Contains \Drupal\Tests\views\Unit\EntityViewsDataTest.
Class
- EntityViewsDataTest
- @coversDefaultClass \Drupal\views\EntityViewsData @group Views
Namespace
Drupal\Tests\views\UnitCode
public function testEntityLinksJustEditForm() {
$this->baseEntityType
->setLinkTemplate('edit-form', '/entity_test/{entity_test}/edit');
$data = $this->viewsData
->getViewsData();
$this
->assertFalse(isset($data['entity_test']['view_entity_test']));
$this
->assertFalse(isset($data['entity_test']['delete_entity_test']));
$this
->assertEquals('entity_link_edit', $data['entity_test']['edit_entity_test']['field']['id']);
}