Loading core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ManageGitIgnoreTest.php +8 −1 Original line number Diff line number Diff line Loading @@ -202,7 +202,14 @@ public function testUnmanagedGitIgnoreWhenGitNotAvailable() { // executable script named 'git' that always exits with 127, as if git were // not found. Note that we run our tests using process isolation, so we do // not need to restore the PATH when we are done. $unavailableGitPath = $this->fixtures->binFixtureDir('disable-git-bin'); $unavailableGitPath = $sut . '/bin'; mkdir($unavailableGitPath); $bash = <<<SH #!/bin/bash exit 127 SH; file_put_contents($unavailableGitPath . '/git', $bash); chmod($unavailableGitPath . '/git', 0755); $oldPath = getenv('PATH'); putenv('PATH=' . $unavailableGitPath . ':' . getenv('PATH')); Loading core/tests/Drupal/Tests/Composer/Plugin/Scaffold/fixtures/scripts/disable-git-bin/gitdeleted 100755 → 0 +0 −2 Original line number Diff line number Diff line #!/bin/bash exit 127 Loading
core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ManageGitIgnoreTest.php +8 −1 Original line number Diff line number Diff line Loading @@ -202,7 +202,14 @@ public function testUnmanagedGitIgnoreWhenGitNotAvailable() { // executable script named 'git' that always exits with 127, as if git were // not found. Note that we run our tests using process isolation, so we do // not need to restore the PATH when we are done. $unavailableGitPath = $this->fixtures->binFixtureDir('disable-git-bin'); $unavailableGitPath = $sut . '/bin'; mkdir($unavailableGitPath); $bash = <<<SH #!/bin/bash exit 127 SH; file_put_contents($unavailableGitPath . '/git', $bash); chmod($unavailableGitPath . '/git', 0755); $oldPath = getenv('PATH'); putenv('PATH=' . $unavailableGitPath . ':' . getenv('PATH')); Loading
core/tests/Drupal/Tests/Composer/Plugin/Scaffold/fixtures/scripts/disable-git-bin/gitdeleted 100755 → 0 +0 −2 Original line number Diff line number Diff line #!/bin/bash exit 127