public function BaseFieldOverrideTest::getClassTestCases in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Field/Entity/BaseFieldOverrideTest.php \Drupal\KernelTests\Core\Field\Entity\BaseFieldOverrideTest::getClassTestCases()
Test cases for ::testGetClass.
File
- core/
tests/ Drupal/ KernelTests/ Core/ Field/ Entity/ BaseFieldOverrideTest.php, line 55
Class
- BaseFieldOverrideTest
- @coversDefaultClass \Drupal\Core\Field\Entity\BaseFieldOverride @group Field
Namespace
Drupal\KernelTests\Core\Field\EntityCode
public function getClassTestCases() {
return [
'String (default class)' => [
'string',
FALSE,
FieldItemList::class,
],
'String (overridden class)' => [
'string',
static::class,
static::class,
],
];
}