You are here

public function CoreComposerValidatorTest::register in Automatic Updates 8.2

Registers test-specific services.

Extend this method in your test to register additional services. This method is called whenever the kernel is rebuilt.

Parameters

\Drupal\Core\DependencyInjection\ContainerBuilder $container: The service container to enhance.

Overrides AutomaticUpdatesKernelTestBase::register

See also

\Drupal\Tests\KernelTestBase::bootKernel()

File

tests/src/Kernel/ReadinessValidation/CoreComposerValidatorTest.php, line 28

Class

CoreComposerValidatorTest
@covers \Drupal\automatic_updates\Validator\CoreComposerValidator

Namespace

Drupal\Tests\automatic_updates\Kernel\ReadinessValidation

Code

public function register(ContainerBuilder $container) {
  parent::register($container);

  // Disable validators which interfere with the validator under test.
  $container
    ->removeDefinition('automatic_updates.disk_space_validator');
}