function ContentEntityStorageBaseTest::providerTestCreate
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/Entity/ContentEntityStorageBaseTest.php \Drupal\KernelTests\Core\Entity\ContentEntityStorageBaseTest::providerTestCreate()
- 8.9.x core/tests/Drupal/KernelTests/Core/Entity/ContentEntityStorageBaseTest.php \Drupal\KernelTests\Core\Entity\ContentEntityStorageBaseTest::providerTestCreate()
- 10 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 46
Class
- ContentEntityStorageBaseTest
- @coversDefaultClass \Drupal\Core\Entity\ContentEntityStorageBase
Namespace
Drupal\KernelTests\Core\EntityCode
public static function providerTestCreate() : \Generator {
(yield 'scalar' => [
'bundle' => 'test_bundle',
]);
(yield 'array keyed by delta' => [
'bundle' => [
0 => [
'value' => 'test_bundle',
],
],
]);
(yield 'array keyed by main property name' => [
'bundle' => [
'value' => 'test_bundle',
],
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.