You are here

protected function EntityViewsDataTest::assertBundleField in Drupal 10

Tests views data for a bundle field.

@internal

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

File

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

Class

EntityViewsDataTest
Tests entity views data.

Namespace

Drupal\Tests\views\Kernel\Entity

Code

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