You are here

public function BlockContentTest::testCollectionFilterAccess in JSON:API 8

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

File

tests/src/Functional/BlockContentTest.php, line 274

Class

BlockContentTest
JSON API integration test for the "BlockContent" content entity type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

public function testCollectionFilterAccess() {
  $this->entity
    ->setPublished()
    ->save();
  $this
    ->doTestCollectionFilterAccessForPublishableEntities('info', NULL, 'administer blocks');
}