You are here

public function EntityDefinitionUpdateTest::baseFieldDeleteWithExistingDataTestCases in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php \Drupal\KernelTests\Core\Entity\EntityDefinitionUpdateTest::baseFieldDeleteWithExistingDataTestCases()
  2. 10 core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php \Drupal\KernelTests\Core\Entity\EntityDefinitionUpdateTest::baseFieldDeleteWithExistingDataTestCases()

Test cases for ::testBaseFieldDeleteWithExistingData.

File

core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php, line 658

Class

EntityDefinitionUpdateTest
Tests EntityDefinitionUpdateManager functionality.

Namespace

Drupal\KernelTests\Core\Entity

Code

public function baseFieldDeleteWithExistingDataTestCases() {
  return [
    'Non-revisionable, non-translatable entity type' => [
      'entity_test_update',
      FALSE,
      FALSE,
      FALSE,
    ],
    'Non-revisionable, non-translatable custom data table' => [
      'entity_test_mul',
      FALSE,
      FALSE,
      FALSE,
    ],
    'Non-revisionable, non-translatable entity type, revisionable base field' => [
      'entity_test_update',
      FALSE,
      TRUE,
      FALSE,
    ],
    'Non-revisionable, non-translatable custom data table, revisionable base field' => [
      'entity_test_mul',
      FALSE,
      TRUE,
      FALSE,
    ],
    'Revisionable, translatable entity type, non revisionable and non-translatable base field' => [
      'entity_test_mulrev',
      TRUE,
      FALSE,
      FALSE,
    ],
    'Revisionable, translatable entity type, revisionable and non-translatable base field' => [
      'entity_test_mulrev',
      TRUE,
      TRUE,
      FALSE,
    ],
    'Revisionable and non-translatable entity type, revisionable and non-translatable base field' => [
      'entity_test_rev',
      TRUE,
      TRUE,
      FALSE,
    ],
    'Revisionable and non-translatable entity type, non-revisionable and non-translatable base field' => [
      'entity_test_rev',
      TRUE,
      FALSE,
      FALSE,
    ],
    'Revisionable and translatable entity type, non-revisionable and translatable base field' => [
      'entity_test_mulrev',
      TRUE,
      FALSE,
      TRUE,
    ],
    'Revisionable and translatable entity type, revisionable and translatable base field' => [
      'entity_test_mulrev',
      TRUE,
      TRUE,
      TRUE,
    ],
  ];
}