You are here

public function EntityViewsDataTest::testGetViewsDataWithEntityOperations in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 811
Contains \Drupal\Tests\views\Unit\EntityViewsDataTest.

Class

EntityViewsDataTest
@coversDefaultClass \Drupal\views\EntityViewsData @group Views

Namespace

Drupal\Tests\views\Unit

Code

public function testGetViewsDataWithEntityOperations() {
  $this->baseEntityType
    ->setListBuilderClass('\\Drupal\\Core\\Entity\\EntityListBuilder');
  $data = $this->viewsData
    ->getViewsData();
  $this
    ->assertSame('entity_operations', $data[$this->baseEntityType
    ->getBaseTable()]['operations']['field']['id']);
}