You are here

protected function JsonApiGeneratorTest::setUp in OpenAPI 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/JsonApiGeneratorTest.php, line 35

Class

JsonApiGeneratorTest
@coversDefaultClass \Drupal\openapi\Plugin\openapi\OpenApiGenerator\JsonApiGenerator @group openapi

Namespace

Drupal\Tests\openapi\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('openapi_test_entity');
  OpenApiTestEntityType::create([
    'id' => 'test',
    'label' => 'Test',
  ])
    ->save();
}