You are here

protected function EntityViewsDataTest::assertUriField in Drupal 9

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

Tests views data for a URI field.

Parameters

$data: The views data to check.

3 calls to EntityViewsDataTest::assertUriField()
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 1063
Contains \Drupal\Tests\views\Unit\EntityViewsDataTest.

Class

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

Namespace

Drupal\Tests\views\Unit

Code

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