-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Allow drush site:install to work with recipes. * Code style * Add a test for installing from a recipe. * Touch up comments * Code style * Skip recipe tests on versions of Drupal that do not yet support recipes. * Rename "profile" arg to "recipeOrProfile". Add better error checking, e.g. Drupal versions and missing recipes. * Code style * Use test recipe on recipe-not-supported test. * Mark the recipe-not-supported test as skipped on sqlite. * Update src/Commands/core/SiteInstallCommands.php Co-authored-by: Moshe Weitzman <weitzman@tejasa.com> * Search paths relative to cwd when looking for recipes. --------- Co-authored-by: Greg Anderson <greg.anderson@greenknowe.org> Co-authored-by: Moshe Weitzman <weitzman@tejasa.com>
- Loading branch information
1 parent
5b1d3d8
commit 5cb8282
Showing
6 changed files
with
224 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
tests/fixtures/recipes/test_recipe/config/user.role.administrator.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
langcode: en | ||
status: true | ||
dependencies: { } | ||
id: administrator | ||
label: 'Site Administrator' | ||
weight: 3 | ||
is_admin: true | ||
permissions: { } |
18 changes: 18 additions & 0 deletions
18
tests/fixtures/recipes/test_recipe/config/user.role.content_editor.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
langcode: en | ||
status: true | ||
dependencies: { } | ||
id: content_editor | ||
label: 'Site editor' | ||
weight: 2 | ||
is_admin: false | ||
permissions: | ||
- 'access administration pages' | ||
- 'access content overview' | ||
- 'access contextual links' | ||
- 'access files overview' | ||
- 'access toolbar' | ||
- 'delete own files' | ||
- 'revert all revisions' | ||
- 'view all revisions' | ||
- 'view own unpublished content' | ||
- 'view the administration theme' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: 'Test Recipe' | ||
description: 'A small subset of the Standard core recipe; contains just enough configuration to allow us to prove that the recipe was installed.' | ||
type: 'Site' | ||
install: | ||
- image | ||
- help | ||
- history | ||
- config | ||
- contextual | ||
- menu_link_content | ||
- datetime | ||
- menu_ui | ||
- options | ||
- toolbar | ||
- field_ui | ||
- views_ui | ||
- shortcut | ||
config: | ||
import: | ||
user: | ||
- core.entity_view_mode.user.compact | ||
- search.page.user_search | ||
- views.view.user_admin_people | ||
- views.view.who_s_new | ||
- views.view.who_s_online | ||
actions: | ||
user.role.authenticated: | ||
grantPermission: 'delete own files' | ||
user.role.content_editor: | ||
grantPermissionsForEachNodeType: | ||
- 'create %bundle content' | ||
- 'delete %bundle revisions' | ||
- 'delete own %bundle content' | ||
- 'edit own %bundle content' | ||
user.role.anonymous: | ||
# This recipe assumes all published content should be publicly accessible. | ||
grantPermission: 'access content' | ||
user.settings: | ||
simple_config_update: | ||
verify_mail: true | ||
register: visitors_admin_approval | ||
cancel_method: user_cancel_block |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters