diff --git a/tests/integration/WpscanScanDirsAlteredTest.php b/tests/integration/WpscanScanDirsAlteredTest.php index 44a5ce713..e3557c804 100644 --- a/tests/integration/WpscanScanDirsAlteredTest.php +++ b/tests/integration/WpscanScanDirsAlteredTest.php @@ -357,6 +357,11 @@ public function testFindDirsAlteredWithNoResultsFound2(): void { vipgoci_unittests_output_suppress(); + $this->options['local-git-repo'] = + vipgoci_unittests_setup_git_repo( + $this->options + ); + if ( false === $this->options['local-git-repo'] ) { $this->markTestSkipped( 'Could not set up git repository: ' . @@ -366,11 +371,6 @@ public function testFindDirsAlteredWithNoResultsFound2(): void { return; } - $this->options['local-git-repo'] = - vipgoci_unittests_setup_git_repo( - $this->options - ); - vipgoci_unittests_output_unsuppress(); /*