You are here

public function BaseFieldOverrideTest::getClassTestCases in Drupal 8

Same name and namespace in other branches
  1. 9 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\Entity

Code

public function getClassTestCases() {
  return [
    'String (default class)' => [
      'string',
      FALSE,
      FieldItemList::class,
    ],
    'String (overriden class)' => [
      'string',
      static::class,
      static::class,
    ],
  ];
}