Skip to content

Commit

Permalink
Add wp-cli.yml to hard flush rewrite rules
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkamp committed Aug 3, 2023
1 parent 1c7f366 commit 2e913ab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .wp-env.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"./tests/e2e/bin/test-data.php",
"."
],
"mappings": {
"wp-cli.yml": "./tests/e2e/config/wp-cli.yml"
},
"lifecycleScripts": {
"afterStart": "./tests/e2e/bin/test-env-setup.sh",
"afterClean": "./tests/e2e/bin/test-env-setup.sh"
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/bin/test-env-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ echo -e 'Activate twentytwentytwo theme \n'
wp-env run tests-cli wp theme activate twentytwentytwo

echo -e 'Update URL structure \n'
wp-env run tests-cli wp rewrite structure '/%postname%/' --hard
wp-env run tests-cli -- wp rewrite structure '/%postname%/' --hard

echo -e 'Add Customer user \n'
wp-env run tests-cli wp user create customer [email protected] \
Expand Down
2 changes: 2 additions & 0 deletions tests/e2e/config/wp-cli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
apache_modules:
- mod_rewrite

0 comments on commit 2e913ab

Please sign in to comment.