You are here

protected function CacheInvalidationOnGroupChangeTest::assertCacheNotPopulated in Organic groups 8

Checks if the group content listing cache for a given group is unpopulated.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $group: The group for which to perform the check.

1 call to CacheInvalidationOnGroupChangeTest::assertCacheNotPopulated()
CacheInvalidationOnGroupChangeTest::testCacheInvalidationOnGroupChange in tests/src/Kernel/Entity/CacheInvalidationOnGroupChangeTest.php
Tests if the cache is correctly invalidated on group change.

File

tests/src/Kernel/Entity/CacheInvalidationOnGroupChangeTest.php, line 181

Class

CacheInvalidationOnGroupChangeTest
Tests if group content listings are invalidated when group audience changes.

Namespace

Drupal\Tests\og\Kernel\Entity

Code

protected function assertCacheNotPopulated(ContentEntityInterface $group) : void {
  $this
    ->assertFalse($this
    ->getCachedData($group));
}