You are here

public function FieldableEntityDefinitionUpdateTest::providerTestFieldableEntityTypeUpdates in Drupal 8

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

Data provider for testFieldableEntityTypeUpdates().

File

core/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php, line 189

Class

FieldableEntityDefinitionUpdateTest
Tests EntityDefinitionUpdateManager's fieldable entity update functionality.

Namespace

Drupal\KernelTests\Core\Entity

Code

public function providerTestFieldableEntityTypeUpdates() {
  return [
    'no change' => [
      'initial_rev' => FALSE,
      'initial_mul' => FALSE,
      'new_rev' => FALSE,
      'new_mul' => FALSE,
      'data_migration_supported' => TRUE,
    ],
    'non_rev non_mul to rev non_mul' => [
      'initial_rev' => FALSE,
      'initial_mul' => FALSE,
      'new_rev' => TRUE,
      'new_mul' => FALSE,
      'data_migration_supported' => TRUE,
    ],
    'non_rev non_mul to rev mul' => [
      'initial_rev' => FALSE,
      'initial_mul' => FALSE,
      'new_rev' => TRUE,
      'new_mul' => TRUE,
      'data_migration_supported' => TRUE,
    ],
    'non_rev non_mul to non_rev mul' => [
      'initial_rev' => FALSE,
      'initial_mul' => FALSE,
      'new_rev' => FALSE,
      'new_mul' => TRUE,
      'data_migration_supported' => TRUE,
    ],
    'rev non_mul to non_rev non_mul' => [
      'initial_rev' => TRUE,
      'initial_mul' => FALSE,
      'new_rev' => FALSE,
      'new_mul' => FALSE,
      'data_migration_supported' => FALSE,
    ],
    'rev non_mul to non_rev mul' => [
      'initial_rev' => TRUE,
      'initial_mul' => FALSE,
      'new_rev' => FALSE,
      'new_mul' => TRUE,
      'data_migration_supported' => FALSE,
    ],
    'rev non_mul to rev mul' => [
      'initial_rev' => TRUE,
      'initial_mul' => FALSE,
      'new_rev' => TRUE,
      'new_mul' => TRUE,
      'data_migration_supported' => TRUE,
    ],
    'non_rev mul to non_rev non_mul' => [
      'initial_rev' => FALSE,
      'initial_mul' => TRUE,
      'new_rev' => FALSE,
      'new_mul' => FALSE,
      'data_migration_supported' => FALSE,
    ],
    'non_rev mul to rev non_mul' => [
      'initial_rev' => FALSE,
      'initial_mul' => TRUE,
      'new_rev' => TRUE,
      'new_mul' => FALSE,
      'data_migration_supported' => FALSE,
    ],
    'non_rev mul to rev mul' => [
      'initial_rev' => FALSE,
      'initial_mul' => TRUE,
      'new_rev' => TRUE,
      'new_mul' => TRUE,
      'data_migration_supported' => TRUE,
    ],
    'rev mul to non_rev non_mul' => [
      'initial_rev' => TRUE,
      'initial_mul' => TRUE,
      'new_rev' => FALSE,
      'new_mul' => FALSE,
      'data_migration_supported' => FALSE,
    ],
    'rev mul to rev non_mul' => [
      'initial_rev' => TRUE,
      'initial_mul' => TRUE,
      'new_rev' => TRUE,
      'new_mul' => FALSE,
      'data_migration_supported' => FALSE,
    ],
    'rev mul to non_rev mul' => [
      'initial_rev' => TRUE,
      'initial_mul' => TRUE,
      'new_rev' => FALSE,
      'new_mul' => TRUE,
      'data_migration_supported' => FALSE,
    ],
  ];
}