Skip to content

Commit

Permalink
Rename farm_install_modules to farm.
Browse files Browse the repository at this point in the history
  • Loading branch information
mstenta committed Mar 18, 2021
1 parent d6cf678 commit 4bd1855
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ jobs:
# https://github.com/drupal/drupal/blob/74fbb0aabdee3e1a5da7b8e489a725afdc5824fd/core/tests/Drupal/Tests/Listeners/HtmlOutputPrinter.php
run: docker-compose exec -u www-data -T test-runner paratest --functional --passthru='--printer=PHPUnit\\TextUI\\DefaultResultPrinter' --verbose=1 /opt/drupal/web/profiles/farm
- name: Test Drush site install with all modules
run: docker-compose exec -u www-data -T www drush site-install --db-url=${{ matrix.DB_URL }} farm farm_install_modules.modules='all'
run: docker-compose exec -u www-data -T www drush site-install --db-url=${{ matrix.DB_URL }} farm farm.modules='all'
4 changes: 2 additions & 2 deletions farm.install
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ function farm_install_modules(array &$install_state) {
// profile arguments. We assume this is an array of module machine names,
// unless it is simply the string "all", which is a shortcut for installing
// all modules.
if (!empty($install_state['forms']['farm_install_modules']['modules'])) {
$modules_arg = $install_state['forms']['farm_install_modules']['modules'];
if (!empty($install_state['forms']['farm']['modules'])) {
$modules_arg = $install_state['forms']['farm']['modules'];
if ($modules_arg === 'all') {
$all = farm_modules();
$modules = array_merge(array_keys($all['default']), array_keys($all['optional']));
Expand Down

0 comments on commit 4bd1855

Please sign in to comment.