protected function EntityViewsDataTest::assertEntityReferenceField in Drupal 10
Tests views data for an entity reference field.
@internal
3 calls to EntityViewsDataTest::assertEntityReferenceField()
- 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 779
Class
- EntityViewsDataTest
- Tests entity views data.
Namespace
Drupal\Tests\views\Kernel\EntityCode
protected function assertEntityReferenceField(array $data) : void {
$this
->assertEquals('field', $data['field']['id']);
$this
->assertEquals('numeric', $data['filter']['id']);
$this
->assertEquals('numeric', $data['argument']['id']);
$this
->assertEquals('standard', $data['sort']['id']);
}