You are here

protected function TestTrait::initializeInvalidationFactoryService in Purge 8.3

Make $this->purgeInvalidationFactory available.

3 calls to TestTrait::initializeInvalidationFactoryService()
PluginTestBase::setUp in tests/src/Kernel/Invalidation/PluginTestBase.php
Set up the test.
QueueBrowserFormTest::testData in modules/purge_ui/tests/src/Functional/Form/QueueBrowserFormTest.php
Tests that data is shown accordingly.
TestTrait::getInvalidations in tests/src/Traits/TestTrait.php
Create $amount requested invalidation objects.

File

tests/src/Traits/TestTrait.php, line 141

Class

TestTrait
Several helper properties and methods for purge tests.

Namespace

Drupal\Tests\purge\Traits

Code

protected function initializeInvalidationFactoryService() : void {
  if (is_null($this->purgeInvalidationFactory)) {
    $this->purgeInvalidationFactory = $this->container
      ->get('purge.invalidation.factory');
  }
}