You are here

protected function EntityResourceTest::setUp in JSON:API Extras 8.2

Same name and namespace in other branches
  1. 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\Controller

Code

protected function setUp() {
  parent::setUp();
  NodeType::create([
    'type' => 'article',
  ])
    ->save();
  Role::create([
    'id' => RoleInterface::ANONYMOUS_ID,
  ])
    ->save();
}