You are here

public function ContentEntityStorageBaseTest::providerTestCreate in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Entity/ContentEntityStorageBaseTest.php \Drupal\KernelTests\Core\Entity\ContentEntityStorageBaseTest::providerTestCreate()

Provides test data for testCreate().

File

core/tests/Drupal/KernelTests/Core/Entity/ContentEntityStorageBaseTest.php, line 44

Class

ContentEntityStorageBaseTest
@coversDefaultClass \Drupal\Core\Entity\ContentEntityStorageBase

Namespace

Drupal\KernelTests\Core\Entity

Code

public function providerTestCreate() {
  return [
    [
      'scalar' => 'test_bundle',
    ],
    [
      'array keyed by delta' => [
        0 => [
          'value' => 'test_bundle',
        ],
      ],
    ],
    [
      'array keyed by main property name' => [
        'value' => 'test_bundle',
      ],
    ],
  ];
}