Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
getContentFromTitle does not return the expected result when sticky posts are published #218
A seemingly random, incorrect post is returned
Steps to reproduce
I am attempting to write custom tests for the Give donation form to provide a real-world WordHat example
I am using the wpcli driver but have tried the php driver locally as well.
I also created a custom step that passes
In CircleCI the wpcli driver is being run against a remote URL on Pantheon, not a local URL. When testing locally the wpcli driver is used but against a local WordPress installation.
I tracked this down to sticky posts. I am using the wp-cli driver and even when running wp-cli commands directly outside of Behat sticky a post shows up when I expect a different post as the result when using
I think this is a result of wp-cli running
I'm not familiar enough with the drivers to know: