You are here

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

Tests views data for a string field.

Parameters

$data: The views data to check.

4 calls to EntityViewsDataTest::assertStringField()
EntityViewsDataTest::assertLongTextField in core/modules/views/tests/src/Unit/EntityViewsDataTest.php
Tests views data for a long text field.
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 1050
Contains \Drupal\Tests\views\Unit\EntityViewsDataTest.

Class

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

Namespace

Drupal\Tests\views\Unit

Code

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