function RsyncValidatorTest::testRsyncNotNeededForDirectWrite

Tests that the presence of rsync is not checked in direct-write mode.

File

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

Class

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

Namespace

Drupal\Tests\package_manager\Kernel

Code

public function testRsyncNotNeededForDirectWrite() : void {
    $this->executableFinder
        ->find('rsync')
        ->shouldNotBeCalled();
    $this->setSetting('package_manager_allow_direct_write', TRUE);
    $this->createStage(TestDirectWriteSandboxManager::class)
        ->create();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.