protected function RestExportJsonApiUnsupported::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/jsonapi/tests/src/Functional/RestExportJsonApiUnsupported.php \Drupal\Tests\jsonapi\Functional\RestExportJsonApiUnsupported::setUp()
Overrides ViewTestBase::setUp
File
- core/
modules/ jsonapi/ tests/ src/ Functional/ RestExportJsonApiUnsupported.php, line 35
Class
- RestExportJsonApiUnsupported
- Ensures that the 'api_json' format is not supported by the REST module.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
protected function setUp($import_test_views = TRUE) : void {
parent::setUp($import_test_views);
ViewTestData::createTestViews(static::class, [
'rest_test_views',
]);
$this
->drupalLogin($this
->drupalCreateUser([
'administer views',
]));
}