protected function EntityResourceTest::setUp in JSON:API Extras 8.3
Same name and namespace in other branches
- 8.2 tests/src/Kernel/Controller/EntityResourceTest.php \Drupal\Tests\jsonapi_extras\Kernel\Controller\EntityResourceTest::setUp()
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ Controller/ EntityResourceTest.php, line 43
Class
- EntityResourceTest
- @coversDefaultClass \Drupal\jsonapi\Controller\EntityResource @covers \Drupal\jsonapi_extras\Normalizer\ConfigEntityDenormalizer @group jsonapi_extras @group legacy
Namespace
Drupal\Tests\jsonapi_extras\Kernel\ControllerCode
protected function setUp() {
parent::setUp();
NodeType::create([
'type' => 'article',
])
->save();
Role::create([
'id' => RoleInterface::ANONYMOUS_ID,
])
->save();
}