You are here

protected function RestExportJsonApiUnsupported::setUp in JSON:API 8.2

Overrides ViewTestBase::setUp

File

tests/src/Functional/RestExportJsonApiUnsupported.php, line 31

Class

RestExportJsonApiUnsupported
Ensures that the 'api_json' format is not supported by the REST module.

Namespace

Drupal\Tests\jsonapi\Functional

Code

protected function setUp($import_test_views = TRUE) {
  parent::setUp($import_test_views);
  ViewTestData::createTestViews(get_class($this), [
    'rest_test_views',
  ]);
  $this
    ->drupalLogin($this
    ->drupalCreateUser([
    'administer views',
  ]));
}