You are here

protected function EntityViewsDataTest::assertStringField in Drupal 10

Tests views data for a string field.

@internal

Parameters

array $data: The views data to check.

4 calls to EntityViewsDataTest::assertStringField()
EntityViewsDataTest::assertLongTextField in core/modules/views/tests/src/Kernel/Entity/EntityViewsDataTest.php
Tests views data for a long text field.
EntityViewsDataTest::testBaseTableFields in core/modules/views/tests/src/Kernel/Entity/EntityViewsDataTest.php
Tests fields on the base table.
EntityViewsDataTest::testDataTableFields in core/modules/views/tests/src/Kernel/Entity/EntityViewsDataTest.php
Tests fields on the data table.
EntityViewsDataTest::testRevisionTableFields in core/modules/views/tests/src/Kernel/Entity/EntityViewsDataTest.php
Tests fields on the revision table.

File

core/modules/views/tests/src/Kernel/Entity/EntityViewsDataTest.php, line 683

Class

EntityViewsDataTest
Tests entity views data.

Namespace

Drupal\Tests\views\Kernel\Entity

Code

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