protected function JsonApiGeneratorTest::setUp in OpenAPI for JSON:API 8.2
Same name and namespace in other branches
- 3.x tests/src/Kernel/JsonApiGeneratorTest.php \Drupal\Tests\openapi_jsonapi\Kernel\JsonApiGeneratorTest::setUp()
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ JsonApiGeneratorTest.php, line 40
Class
- JsonApiGeneratorTest
- @coversDefaultClass \Drupal\openapi_jsonapi\Plugin\openapi\OpenApiGenerator\JsonApiGenerator
Namespace
Drupal\Tests\openapi_jsonapi\KernelCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('user');
$this
->installEntitySchema('taxonomy_term');
$this
->installEntitySchema('menu_link_content');
$this
->installEntitySchema('openapi_test_entity');
OpenApiTestEntityType::create([
'id' => 'test',
'label' => 'Test',
])
->save();
}