protected function EntityResourceTest::setUp in JSON:API Extras 8.2
Same name and namespace in other branches
- 8.3 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 40
Class
- EntityResourceTest
- @coversDefaultClass \Drupal\jsonapi\Controller\EntityResource @covers \Drupal\jsonapi_extras\Normalizer\ConfigEntityNormalizer @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();
}