-
Notifications
You must be signed in to change notification settings - Fork 6
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
Admin login fails when WordPress core is in a subdirectory #44
Comments
Yeah, we can override MinkContext to alter the handling of admin urls by |
Cool, let's look into it at Drupalcon or when you are back. It's currently blocking work for me on my advanced WordPress demo repo running these tests since core is install in the |
I'm working on addressing this problem. I've been combining this repo and https://github.com/pantheon-systems/example-drops-8-composer into https://github.com/stevector/example-wordpress-composer such that it can be built from https://github.com/pantheon-systems/terminus-build-tools-plugin I have gotten to the point where at least a hacked branch of our tests can pass: #47 by setting the base url to include |
Here is a repo that was created by me running
https://github.com/stevector/persch-ewc-m As the name suggests, |
@stevector I think we can take a lesson from WordHat here. They pull the admin URL from |
Thanks for finding that method @ataylorme! I'll adapt that method into our suite until we can do a fuller rewrite relying on WordHat. |
@stevector do you still think this is something we should do? I have a lot more Behat/Wordhat experience than I did 2 years ago 😄 |
lol, maybe @ataylorme. But it probably doesn't take precedent over Build Tools work. |
Specifically the
$this->minkContext->assertPageAddress("wp-admin/");
assertion fails.We should pull the WordPress core URL with
wp option get siteurl
and appendwp-admin
.The text was updated successfully, but these errors were encountered: