protected function EntityViewsDataTest::assertBundleField in Drupal 9
Same name and namespace in other branches
- 8 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 1144 - Contains \Drupal\Tests\views\Unit\EntityViewsDataTest.
Class
- EntityViewsDataTest
- @coversDefaultClass \Drupal\views\EntityViewsData @group Views
Namespace
Drupal\Tests\views\UnitCode
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']);
}