You are here

public function SpambotCacheTest::alter in Spambot 8

Modifies existing service definitions.

Parameters

ContainerBuilder $container: The ContainerBuilder whose service definitions can be altered.

Overrides ServiceModifierInterface::alter

File

tests/src/Kernel/SpambotCacheTest.php, line 62

Class

SpambotCacheTest
Test of Spambot caching functionality.

Namespace

Drupal\Tests\spambot\Kernel

Code

public function alter(ContainerBuilder $container) {
  $container
    ->removeDefinition('test.http_client.middleware');
}