Skip to content
Snippets Groups Projects
Commit 180e3400 authored by Ryan Aslett (Mixologic)'s avatar Ryan Aslett (Mixologic) Committed by Brad Jones
Browse files

Removes the ./ but I know this wont work

parent 5f20ea89
No related branches found
No related tags found
1 merge request!30Issue #3182188: Updates composer usage to point at ./vendor/bin/composer
......@@ -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();
}
......
......@@ -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
......
......@@ -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);
......
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment