function FieldResolverTest::makeBundle
Create a simple bundle.
Parameters
string $name: The name of the bundle to create.
1 call to FieldResolverTest::makeBundle()
- FieldResolverTest::setUp in core/
modules/ jsonapi/ tests/ src/ Kernel/ Context/ FieldResolverTest.php
File
-
core/
modules/ jsonapi/ tests/ src/ Kernel/ Context/ FieldResolverTest.php, line 424
Class
Namespace
Drupal\Tests\jsonapi\Kernel\ContextCode
protected function makeBundle($name) : void {
EntityTestBundle::create([
'id' => $name,
])->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.