function RsyncValidatorTest::register
Overrides PackageManagerKernelTestBase::register
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ RsyncValidatorTest.php, line 45
Class
- RsyncValidatorTest
- @covers \Drupal\package_manager\Validator\RsyncValidator @group package_manager @internal
Namespace
Drupal\Tests\package_manager\KernelCode
public function register(ContainerBuilder $container) : void {
parent::register($container);
$container->set('mock_executable_finder', $this->executableFinder
->reveal());
$container->getDefinition(RsyncValidator::class)
->setArgument('$executableFinder', new Reference('mock_executable_finder'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.