WordPressPluginContext - add missing methods#8
WordPressPluginContext - add missing methods#8Chrico wants to merge 7 commits intostephenharris:developfrom
Conversation
First of all i've updated the `thereArePlugins`-method to re-use the new internal functions. Also the method will now throw a Exception if a plugin is not successfully activated/deactivated. Follwing new resuable actions are defined: ---- *Uninstall:* * `I uninstall the plugin :plugin` * `The plugin :plugin is uninstallable` * `The plugin :plugin is not uninstallable` ---- *Activate:* * `I activate the plugin :plugin` * `The plugin :plugin is activated` ---- *Deactivate:* * `I deactivate the plugin :plugin` * `The plugin :plugin is deactivated` ---- Next step should be to extend the actions to optional `network_wide`
|
Thanks @Chrico, I was not aware of the Just one thing - could you run |
|
Sure @stephenharris . The code formatting is now done, but the Travis CI still fails because of some broken Behat-tests?! I also added some new tests for the new actions in Edit: I also removed in this pull the unnecessary "user"-table for "I have a vanilla wordpress installation", since the table is the same as the default when no table is there. |
… because the default is the same.
|
@Chrico regarding the failing test, I've opened an issue for this. I've seen it occasionally on Travis and running locally. Normally re-running the test 'fixes' it, but I want to come up with a more robust solution: #10 I've just noticed the step definitions have As you can see, the tests you've added are not running as Behat can't find the step implementation: https://travis-ci.org/stephenharris/WordPressBehatExtension/jobs/171651680#L803 (the tests still pass because we're not running in strict mode - that should be changed I think). |
|
Done! thanks a lot for the notice. :) |
|
Looks like there are three failing scenarios:
(1) - the hello.php plug-in doesn't appear to be uninstallable (?). For (2) and (3) I think you forgot to revert the changes to features/user.feature. Separately, I noticed the error message is wrong: Password for user password incorrect - it should be Password for user admin incorrect (where admin should be the username of the user). I've opened #11 for this. |
* revert of a4a256f fore user.feature
|
Howdy! Thanks. The The |
|
Tests are failing, but I think for reasons other than this PR:
Might need to run this locally to identify if that's anything to worry about. |
|
I couldn't replicate those errors locally. One thing I think I had failed to notice before, the functions are not really end-user tests, but are just testing the WP functions. For example: The Or it's |
First of all i've updated the
thereArePlugins-method to re-use the new internal functions. Also the method will now throw a Exception if a plugin is not successfully activated/deactivated.Follwing new resuable actions are defined:
Uninstall:
I uninstall the plugin :pluginThe plugin :plugin is uninstallableThe plugin :plugin is not uninstallableActivate:
I activate the plugin :pluginThe plugin :plugin is activatedDeactivate:
I deactivate the plugin :pluginThe plugin :plugin is deactivatedNext step should be to extend the actions to optional
network_wide