You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default behavior is to run a test only when the package providing it is the SUT--not when it is merely included in another package's test fixture. Any test not designated public or ignored is so treated. Such tests are referred to as "private tests". This should be considered the correct choice for most tests--particularly for features that involve little or no risk of conflict with other Acquia packages, including [isolated unit tests](http://wiki.c2.com/?UnitTestIsolation) by definition.
Copy file name to clipboardExpand all lines: src/Command/Fixture/FixtureInitCommand.php
+26-4Lines changed: 26 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -132,13 +132,14 @@ protected function configure() {
132
132
['- Any version string Composer understands, see https://getcomposer.org/doc/articles/versions.md']
133
133
)), DrupalCoreVersion::CURRENT_RECOMMENDED)
134
134
->addOption('dev', NULL, InputOption::VALUE_NONE, 'Use dev versions of Acquia packages')
135
-
->addOption('profile', NULL, InputOption::VALUE_REQUIRED, 'The Drupal installation profile to use, e.g., "minimal". ("orca" is a pseudo-profile based on "testing", with the Toolbar module enabled and Seven as the admin theme)', FixtureCreator::DEFAULT_PROFILE)
135
+
->addOption('profile', NULL, InputOption::VALUE_REQUIRED, 'The Drupal installation profile to use, e.g., "minimal". ("orca" is a pseudo-profile based on "minimal", with the Toolbar module enabled and Seven as the admin theme)', FixtureCreator::DEFAULT_PROFILE)
136
136
137
137
// Uncommon options.
138
138
->addOption('ignore-patch-failure', NULL, InputOption::VALUE_NONE, 'Do not exit on failure to apply Composer patches. (Useful for debugging failures)')
139
139
->addOption('no-sqlite', NULL, InputOption::VALUE_NONE, 'Use the default BLT database includes instead of SQLite')
140
140
->addOption('no-site-install', NULL, InputOption::VALUE_NONE, 'Do not install Drupal. Supersedes the "--profile" option')
141
-
->addOption('prefer-source', NULL, InputOption::VALUE_NONE, 'Force installation of non-Acquia packages from sources when possible, including VCS information. (Acquia packages are always installed from source.) Useful for core and contrib work');
141
+
->addOption('prefer-source', NULL, InputOption::VALUE_NONE, 'Force installation of non-Acquia packages from sources when possible, including VCS information. (Acquia packages are always installed from source.) Useful for core and contrib work')
142
+
->addOption('symlink-all', NULL, InputOption::VALUE_NONE, 'Symlink all possible Acquia packages via local path repository. Packages absent from the expected location will be installed normally');
142
143
}
143
144
144
145
/**
@@ -151,8 +152,9 @@ public function execute(InputInterface $input, OutputInterface $output): int {
151
152
$sut = $input->getOption('sut');
152
153
$sut_only = $input->getOption('sut-only');
153
154
$core = $input->getOption('core');
155
+
$symlink_all = $input->getOption('symlink-all');
154
156
155
-
if (!$this->isValidInput($sut, $sut_only, $bare, $core, $output)) {
157
+
if (!$this->isValidInput($sut, $sut_only, $bare, $core, $symlink_all, $output)) {
156
158
return StatusCode::ERROR;
157
159
}
158
160
@@ -166,6 +168,7 @@ public function execute(InputInterface $input, OutputInterface $output): int {
0 commit comments