public function EntityViewsDataTest::testGetViewsDataWithoutEntityOperations 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::testGetViewsDataWithoutEntityOperations()
@covers ::getViewsData
File
- core/
modules/ views/ tests/ src/ Unit/ EntityViewsDataTest.php, line 800 - 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()]);
}