public function ContentEntityStorageBaseTest::providerTestCreate in Drupal 9
Same name and namespace in other branches
- 8 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',
],
],
];
}