You are here

public function EntityViewDisplayTest::testCollection in JSON:API 8

Tests GETting a collection of resources.

Overrides ResourceTestBase::testCollection

File

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

Class

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

Namespace

Drupal\Tests\jsonapi\Functional

Code

public function testCollection() {

  // @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::testCollection();
}