Cache::
invalidateTags(['state:jsonapi__entity_test_filter_access_blacklist'
]);
// ?filter[spotlight.LABEL]: 0 results.
$response =
$this->
request('GET',
$collection_filter_url,
$request_options);
$doc = Json::
decode((string) $response->
getBody());
$this->
assertCount(0,
$doc['data'
]);
} /**
* {@inheritdoc}
*/
protected static function getExpectedCollectionCacheability(AccountInterface
$account, array
$collection, array
$sparse_fieldset = NULL,
$filtered = FALSE
) { $cacheability = parent::
getExpectedCollectionCacheability($account,
$collection,
$sparse_fieldset,
$filtered);
if ($filtered) { $cacheability->
addCacheTags(['state:jsonapi__entity_test_filter_access_blacklist'
]);
} return $cacheability;
} /**
* {@inheritdoc}
*/
public function testPatchIndividual() { // Ensure ::getModifiedEntityForPatchTesting() can pick an alternative value