function RsyncValidatorTest::setUp

Overrides PackageManagerKernelTestBase::setUp

File

core/modules/package_manager/tests/src/Kernel/RsyncValidatorTest.php, line 33

Class

RsyncValidatorTest
@covers \Drupal\package_manager\Validator\RsyncValidator @group package_manager @internal

Namespace

Drupal\Tests\package_manager\Kernel

Code

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.