You are here

public function EntityFormDisplayTest::testGetIndividual in JSON:API 8

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

Overrides ResourceTestBase::testGetIndividual

File

tests/src/Functional/EntityFormDisplayTest.php, line 183

Class

EntityFormDisplayTest
JSON API integration test for the "EntityFormDisplay" 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('EntityFormDisplay entities had a dysfunctional access control handler until 8.5, this is necessary for this test coverage to work.');
  }
  return parent::testGetIndividual();
}