function EntityViewsDataTest::testGetViewsDataWithoutEntityOperations
@covers ::getViewsData
File
-
core/
modules/ views/ tests/ src/ Unit/ EntityViewsDataTest.php, line 998
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()]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.