Skip to content

Commit 2c52624

Browse files
committed
run behat on theme - corrections
1 parent 0a366d8 commit 2c52624

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Command/BehatCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ protected function configure()
4646

4747
$this->setName('behat')
4848
->addOption('profile', 'p', InputOption::VALUE_REQUIRED, 'Behat profile to use', 'default')
49-
->addOption('suite', 's', InputOption::VALUE_REQUIRED, 'Behat suite to use (Moodle theme)', 'default')
49+
->addOption('suite', null, InputOption::VALUE_REQUIRED, 'Behat suite to use (Moodle theme)', 'default')
5050
->addOption('start-servers', null, InputOption::VALUE_NONE, 'Start Selenium and PHP servers')
5151
->addOption('jar', null, InputOption::VALUE_REQUIRED, 'Path to Selenium Jar file', $jar)
5252
->addOption('auto-rerun', null, InputOption::VALUE_REQUIRED, 'Number of times to rerun failures', 2)

src/Installer/TestSuiteInstaller.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function getBehatInstallProcesses()
112112

113113
return [
114114
new Process($curl, null, null, null, 120),
115-
new MoodleProcess(sprintf('%s --install --add-core-features-to-theme', $this->getBehatUtility())),
115+
new MoodleProcess(sprintf('%s --install', $this->getBehatUtility())),
116116
];
117117
}
118118

@@ -143,7 +143,7 @@ public function getPostInstallProcesses()
143143

144144
if ($this->plugin->hasBehatFeatures()) {
145145
$this->getOutput()->debug('Enabling Behat');
146-
$processes[] = new MoodleProcess(sprintf('%s --enable', $this->getBehatUtility()));
146+
$processes[] = new MoodleProcess(sprintf('%s --enable --add-core-features-to-theme', $this->getBehatUtility()));
147147
}
148148
if ($this->plugin->hasUnitTests()) {
149149
$this->getOutput()->debug('Build PHPUnit config');

0 commit comments

Comments
 (0)