From 180e3400de70918b1fb2bc576d0259af01b91e3d Mon Sep 17 00:00:00 2001 From: "Ryan Aslett (Mixologic)" <ryan@association.drupal.org> Date: Mon, 16 Nov 2020 09:51:48 -0800 Subject: [PATCH] Removes the ./ but I know this wont work --- core/tests/Drupal/BuildTests/Composer/ComposerValidateTest.php | 2 +- .../Composer/Template/ComposerProjectTemplatesTest.php | 2 +- core/tests/Drupal/BuildTests/Framework/Tests/HtRouterTest.php | 2 +- .../Composer/Plugin/Scaffold/Functional/ComposerHookTest.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/tests/Drupal/BuildTests/Composer/ComposerValidateTest.php b/core/tests/Drupal/BuildTests/Composer/ComposerValidateTest.php index 39bab190acfd..fa8699db8245 100644 --- a/core/tests/Drupal/BuildTests/Composer/ComposerValidateTest.php +++ b/core/tests/Drupal/BuildTests/Composer/ComposerValidateTest.php @@ -25,7 +25,7 @@ public function provideComposerJson() { * @dataProvider provideComposerJson */ public function testValidateComposer($path) { - $this->executeCommand('./vendor/bin/composer validate --strict --no-check-all ' . $path); + $this->executeCommand('vendor/bin/composer validate --strict --no-check-all ' . $path); $this->assertCommandSuccessful(); } diff --git a/core/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php b/core/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php index 92c4a21d109c..26753bc7bfde 100644 --- a/core/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php +++ b/core/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php @@ -178,7 +178,7 @@ public function testTemplateCreateProject($project, $package_dir, $docroot_dir) // It is necessary to do this globally rather than in our SUT composer.json // in order to ensure that Packagist is disabled during the // `composer create-project` command. - $this->executeCommand("COMPOSER_HOME=$composer_home ./vendor/bin/composer config --no-interaction --global repo.packagist false"); + $this->executeCommand("COMPOSER_HOME=$composer_home vendor/bin/composer config --no-interaction --global repo.packagist false"); $this->assertCommandSuccessful(); // Create a "Composer"-type repository containing one entry for every diff --git a/core/tests/Drupal/BuildTests/Framework/Tests/HtRouterTest.php b/core/tests/Drupal/BuildTests/Framework/Tests/HtRouterTest.php index 096a7138abb4..57c93a0d4270 100644 --- a/core/tests/Drupal/BuildTests/Framework/Tests/HtRouterTest.php +++ b/core/tests/Drupal/BuildTests/Framework/Tests/HtRouterTest.php @@ -22,7 +22,7 @@ public function testHtRouter() { } $this->copyCodebase(); - $this->executeCommand('COMPOSER_DISCARD_CHANGES=true ./vendor/bin/composer install --no-dev --no-interaction'); + $this->executeCommand('COMPOSER_DISCARD_CHANGES=true vendor/bin/composer install --no-dev --no-interaction'); $this->assertErrorOutputContains('Generating autoload files'); $this->installQuickStart('minimal'); $this->formLogin($this->adminUsername, $this->adminPassword); diff --git a/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ComposerHookTest.php b/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ComposerHookTest.php index 4a8f86659758..aec9575d9a90 100644 --- a/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ComposerHookTest.php +++ b/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ComposerHookTest.php @@ -115,7 +115,7 @@ public function testComposerHooks() { $sut = $this->fixturesDir . '/create-project-test'; $filesystem = new Filesystem(); $filesystem->remove($sut); - $stdout = $this->mustExec("./vendor/bin/composer create-project --repository=packages.json fixtures/drupal-drupal {$sut}", $this->fixturesDir, ['COMPOSER_MIRROR_PATH_REPOS' => 1]); + $stdout = $this->mustExec("vendor/bin/composer create-project --repository=packages.json fixtures/drupal-drupal {$sut}", $this->fixturesDir, ['COMPOSER_MIRROR_PATH_REPOS' => 1]); $this->assertDirectoryExists($sut); $this->assertStringContainsString('Scaffolding files for fixtures/drupal-drupal', $stdout); $this->assertScaffoldedFile($sut . '/index.php', FALSE, 'Test version of index.php from drupal/core'); -- GitLab