You are here

protected function EntityViewsDataTest::assertBundleField 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::assertBundleField()

Tests views data for a bundle field.

1 call to EntityViewsDataTest::assertBundleField()
EntityViewsDataTest::testDataTableFields in core/modules/views/tests/src/Unit/EntityViewsDataTest.php
Tests fields on the data table.

File

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

Class

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

Namespace

Drupal\Tests\views\Unit

Code

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