You are here

public function EntityViewDisplayTest::testGetIndividual in JSON:API 8

Tests GETting an individual resource, plus edge cases to ensure good DX.

Overrides ResourceTestBase::testGetIndividual

File

tests/src/Functional/EntityViewDisplayTest.php, line 141

Class

EntityViewDisplayTest
JSON API integration test for the "EntityViewDisplay" config entity type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

public function testGetIndividual() {

  // @todo Remove when JSON API requires Drupal 8.5 or newer.
  // @see https://www.drupal.org/project/drupal/issues/2866666
  if (floatval(\Drupal::VERSION) < 8.5) {
    $this
      ->markTestSkipped('EntityViewisplay entities had a dysfunctional access control handler until 8.5, this is necessary for this test coverage to work.');
  }
  return parent::testGetIndividual();
}