You are here

protected function FieldResolverTest::makeBundle in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/jsonapi/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 core/modules/jsonapi/tests/src/Kernel/Context/FieldResolverTest.php

File

core/modules/jsonapi/tests/src/Kernel/Context/FieldResolverTest.php, line 350

Class

FieldResolverTest
@coversDefaultClass \Drupal\jsonapi\Context\FieldResolver @group jsonapi

Namespace

Drupal\Tests\jsonapi\Kernel\Context

Code

protected function makeBundle($name) {
  EntityTestBundle::create([
    'id' => $name,
  ])
    ->save();
}