function 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,
    ],
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.