Skip to content

Commit

Permalink
Run composer install and require command with the dev dependencies to…
Browse files Browse the repository at this point in the history
… have the checked files.
  • Loading branch information
FlorentTorregrosa committed Dec 9, 2017
1 parent b11999e commit 21f28fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/PluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class PluginTest extends BaseTest {
public function testComposerInstallAndUpdate() {
$exampleScaffoldFile = $this->tmpDir . DIRECTORY_SEPARATOR . 'index.php';
$this->assertFileNotExists($exampleScaffoldFile, 'Scaffold file should not be exist.');
$this->composer('install --no-dev --prefer-dist');
$this->composer('install --prefer-dist');
$this->assertFileExists($this->tmpDir . DIRECTORY_SEPARATOR . 'core', 'Drupal core is installed.');
$this->assertFileExists($exampleScaffoldFile, 'Scaffold file should be automatically installed.');
$this->fs->remove($exampleScaffoldFile);
Expand All @@ -32,7 +32,7 @@ public function testComposerInstallAndUpdate() {
touch($exampleScaffoldFile);
$mtime_touched = filemtime($exampleScaffoldFile);
// Requiring a newer version triggers "composer update"
$this->composer('require --update-with-dependencies --prefer-dist --update-no-dev drupal/core:"' . $version .'"');
$this->composer('require --update-with-dependencies --prefer-dist drupal/core:"' . $version .'"');
clearstatcache();
$mtime_after = filemtime($exampleScaffoldFile);
$this->assertNotEquals($mtime_after, $mtime_touched, 'Scaffold file was modified by composer update. (' . $version . ')');
Expand Down

0 comments on commit 21f28fb

Please sign in to comment.