You are here

protected function CacheInvalidationOnGroupChangeTest::assertCachePopulated in Organic groups 8

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

Parameters

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

1 call to CacheInvalidationOnGroupChangeTest::assertCachePopulated()
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 171

Class

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

Namespace

Drupal\Tests\og\Kernel\Entity

Code

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