Skip to content

Commit 21f28fb

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/PluginTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class PluginTest extends BaseTest {
1818
public function testComposerInstallAndUpdate() {
1919
$exampleScaffoldFile = $this->tmpDir . DIRECTORY_SEPARATOR . 'index.php';
2020
$this->assertFileNotExists($exampleScaffoldFile, 'Scaffold file should not be exist.');
21-
$this->composer('install --no-dev --prefer-dist');
21+
$this->composer('install --prefer-dist');
2222
$this->assertFileExists($this->tmpDir . DIRECTORY_SEPARATOR . 'core', 'Drupal core is installed.');
2323
$this->assertFileExists($exampleScaffoldFile, 'Scaffold file should be automatically installed.');
2424
$this->fs->remove($exampleScaffoldFile);
@@ -32,7 +32,7 @@ public function testComposerInstallAndUpdate() {
3232
touch($exampleScaffoldFile);
3333
$mtime_touched = filemtime($exampleScaffoldFile);
3434
// Requiring a newer version triggers "composer update"
35-
$this->composer('require --update-with-dependencies --prefer-dist --update-no-dev drupal/core:"' . $version .'"');
35+
$this->composer('require --update-with-dependencies --prefer-dist drupal/core:"' . $version .'"');
3636
clearstatcache();
3737
$mtime_after = filemtime($exampleScaffoldFile);
3838
$this->assertNotEquals($mtime_after, $mtime_touched, 'Scaffold file was modified by composer update. (' . $version . ')');

0 commit comments

Comments
 (0)