function RsyncValidatorTest::setUp
Same name and namespace in other branches
- 11.x core/modules/package_manager/tests/src/Kernel/RsyncValidatorTest.php \Drupal\Tests\package_manager\Kernel\RsyncValidatorTest::setUp()
Overrides PackageManagerKernelTestBase::setUp
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ RsyncValidatorTest.php, line 42
Class
- RsyncValidatorTest
- Tests Rsync Validator.
Namespace
Drupal\Tests\package_manager\KernelCode
protected function setUp() : void {
// Set up a mocked executable finder which will always be re-injected into
// the validator when the container is rebuilt.
$this->executableFinder = $this->prophesize(ExecutableFinderInterface::class);
$this->executableFinder
->find('rsync')
->willReturn('/path/to/rsync');
parent::setUp();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.