public function EntityViewsDataTest::testGetViewsDataWithEntityOperations in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/tests/src/Unit/EntityViewsDataTest.php \Drupal\Tests\views\Unit\EntityViewsDataTest::testGetViewsDataWithEntityOperations()
@covers ::getViewsData
File
- core/
modules/ views/ tests/ src/ Unit/ EntityViewsDataTest.php, line 1009 - Contains \Drupal\Tests\views\Unit\EntityViewsDataTest.
Class
- EntityViewsDataTest
- @coversDefaultClass \Drupal\views\EntityViewsData @group Views
Namespace
Drupal\Tests\views\UnitCode
public function testGetViewsDataWithEntityOperations() {
$this->baseEntityType
->setListBuilderClass('\\Drupal\\Core\\Entity\\EntityListBuilder');
$data = $this->viewsData
->getViewsData();
$tables = [
'entity_test',
'entity_test_revision',
];
$this
->assertSame($tables, array_keys($data));
foreach ($tables as $table_name) {
$this
->assertSame('entity_operations', $data[$table_name]['operations']['field']['id']);
}
}