public function EntityViewsDataTest::testGetViewsDataWithoutEntityOperations in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/tests/src/Unit/EntityViewsDataTest.php \Drupal\Tests\views\Unit\EntityViewsDataTest::testGetViewsDataWithoutEntityOperations()
@covers ::getViewsData
File
- core/
modules/ views/ tests/ src/ Unit/ EntityViewsDataTest.php, line 998 - Contains \Drupal\Tests\views\Unit\EntityViewsDataTest.
Class
- EntityViewsDataTest
- @coversDefaultClass \Drupal\views\EntityViewsData @group Views
Namespace
Drupal\Tests\views\UnitCode
public function testGetViewsDataWithoutEntityOperations() {
// Make sure there is no list builder. The API does not document is
// supports resetting entity handlers, so this might break in the future.
$this->baseEntityType
->setListBuilderClass(NULL);
$data = $this->viewsData
->getViewsData();
$this
->assertArrayNotHasKey('operations', $data[$this->baseEntityType
->getBaseTable()]);
}