protected function FieldResolverTest::makeBundle in JSON:API 8.2
Same name and namespace in other branches
- 8 tests/src/Kernel/Context/FieldResolverTest.php \Drupal\Tests\jsonapi\Kernel\Context\FieldResolverTest::makeBundle()
Create a simple bundle.
Parameters
string $name: The name of the bundle to create.
1 call to FieldResolverTest::makeBundle()
- FieldResolverTest::setUp in tests/
src/ Kernel/ Context/ FieldResolverTest.php
File
- tests/
src/ Kernel/ Context/ FieldResolverTest.php, line 343
Class
- FieldResolverTest
- @coversDefaultClass \Drupal\jsonapi\Context\FieldResolver @group jsonapi @group legacy
Namespace
Drupal\Tests\jsonapi\Kernel\ContextCode
protected function makeBundle($name) {
EntityTestBundle::create([
'id' => $name,
])
->save();
}