You are here

protected function EntityViewsDataTest::assertEntityReferenceField in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/tests/src/Unit/EntityViewsDataTest.php \Drupal\Tests\views\Unit\EntityViewsDataTest::assertEntityReferenceField()

Tests views data for a entity reference field.

3 calls to EntityViewsDataTest::assertEntityReferenceField()
EntityViewsDataTest::testBaseTableFields in core/modules/views/tests/src/Unit/EntityViewsDataTest.php
Tests fields on the base table.
EntityViewsDataTest::testDataTableFields in core/modules/views/tests/src/Unit/EntityViewsDataTest.php
Tests fields on the data table.
EntityViewsDataTest::testRevisionTableFields in core/modules/views/tests/src/Unit/EntityViewsDataTest.php
Tests fields on the revision table.

File

core/modules/views/tests/src/Unit/EntityViewsDataTest.php, line 1134
Contains \Drupal\Tests\views\Unit\EntityViewsDataTest.

Class

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

Namespace

Drupal\Tests\views\Unit

Code

protected function assertEntityReferenceField($data) {
  $this
    ->assertEquals('field', $data['field']['id']);
  $this
    ->assertEquals('numeric', $data['filter']['id']);
  $this
    ->assertEquals('numeric', $data['argument']['id']);
  $this
    ->assertEquals('standard', $data['sort']['id']);
}