You are here

public function TermTest::testCollectionFilterAccess in JSON:API 8

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/TermTest.php \Drupal\Tests\jsonapi\Functional\TermTest::testCollectionFilterAccess()

File

tests/src/Functional/TermTest.php, line 508

Class

TermTest
JSON API integration test for the "Term" content entity type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

public function testCollectionFilterAccess() {
  if (floatval(\Drupal::VERSION) >= 8.6) {
    $this
      ->doTestCollectionFilterAccessForPublishableEntities('name', 'access content', 'administer taxonomy');
  }
  else {
    $this
      ->doTestCollectionFilterAccessBasedOnPermissions('name', 'access content');
  }
}