Skip to content

Commit f08cb27

Browse files
Run composer install and require command with the dev dependencies to have the checked files.
1 parent 21cf52b commit f08cb27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/PluginTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class PluginTest extends BaseTest {
1313
public function testComposerInstallAndUpdate() {
1414
$exampleScaffoldFile = $this->tmpDir . DIRECTORY_SEPARATOR . 'index.php';
1515
$this->assertFileNotExists($exampleScaffoldFile, 'Scaffold file should not be exist.');
16-
$this->composer('install --no-dev --prefer-dist');
16+
$this->composer('install --prefer-dist');
1717
$this->assertFileExists($this->tmpDir . DIRECTORY_SEPARATOR . 'core', 'Drupal core is installed.');
1818
$this->assertFileExists($exampleScaffoldFile, 'Scaffold file should be automatically installed.');
1919
$this->fs->remove($exampleScaffoldFile);
@@ -27,7 +27,7 @@ public function testComposerInstallAndUpdate() {
2727
touch($exampleScaffoldFile);
2828
$mtime_touched = filemtime($exampleScaffoldFile);
2929
// Requiring a newer version triggers "composer update".
30-
$this->composer('require --update-with-dependencies --prefer-dist --update-no-dev drupal/core:"' . $version . '"');
30+
$this->composer('require --update-with-dependencies --prefer-dist drupal/core:"' . $version . '"');
3131
clearstatcache();
3232
$mtime_after = filemtime($exampleScaffoldFile);
3333
$this->assertNotEquals($mtime_after, $mtime_touched, 'Scaffold file was modified by composer update. (' . $version . ')');

0 commit comments

Comments
 (0)