function RestExportJsonApiUnsupported::setUp

Same name in other branches
  1. 9 core/modules/jsonapi/tests/src/Functional/RestExportJsonApiUnsupported.php \Drupal\Tests\jsonapi\Functional\RestExportJsonApiUnsupported::setUp()
  2. 10 core/modules/jsonapi/tests/src/Functional/RestExportJsonApiUnsupported.php \Drupal\Tests\jsonapi\Functional\RestExportJsonApiUnsupported::setUp()
  3. 11.x 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\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',
    ]));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.