-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing plugin dir + using multiple plugins + mocking API calls #29
Comments
The next release of e2e-environment will have I'm going to leave this issue open for a reminder that we will need to update the instructions here when we release the e2e-environment package. |
@BrianHenryIE I forgot to ask if there was a reason you can't install these with WP CLI in your initialization script? |
From what I see, the only mapping into the host is |
You can install and activate a plugin zip with |
Hi @BrianHenryIE, Wanted to just follow up on this as it's been open a while. Did the option to try above work for you? |
I had hoped the following would work but it fails at installing the WP CLI package.
I also seem to have to add |
I'm looking for the best way to symlink multiple plugins from my project folder into the test environment.
docker-compose.yaml symlinks the plugin being tested with:
In my project dir, I keep my plugin in a subdir (src) rather than the project root.
Additionally, I generally am writing a plugin around existing paid plugins that I need active. So I need to to symlink that plugin.
Then I want to mock the API data I need in tests, which I'm doing in PHP with
WP_HTTP::request()
'spre_http_request
filter. Again, this plugin needs to be symlinked.I'm successfully doing this with a
package.json
postinstall
script:Is there a better way?
The text was updated successfully, but these errors were encountered: