public function ContentEntityStorageBaseTest::providerTestCreate in Drupal 8
Same name and namespace in other branches
- 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\EntityCode
public function providerTestCreate() {
return [
[
'scalar' => 'test_bundle',
],
[
'array keyed by delta' => [
0 => [
'value' => 'test_bundle',
],
],
],
[
'array keyed by main property name' => [
'value' => 'test_bundle',
],
],
];
}