You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scenario: Revert the WP-CLI packages composer.json when fail to install/uninstall a package due to memory limit
62
66
Given an empty directory
63
-
When I try `{INVOKE_WP_CLI_WITH_PHP_ARGS--dmemory_limit=10M -ddisable_functions=ini_set} package install danielbachhuber/wp-cli-reset-post-date-command`
67
+
When I try `{INVOKE_WP_CLI_WITH_PHP_ARGS--dmemory_limit=10M -ddisable_functions=ini_set} package install runcommand/hook`
64
68
Then the return code should not be 0
65
69
And STDERR should contain:
66
70
"""
67
71
Reverted composer.json.
68
72
"""
69
73
70
-
When I run `wp package install danielbachhuber/wp-cli-reset-post-date-command`
74
+
When I run `wp package install runcommand/hook`
71
75
Then STDOUT should contain:
72
76
"""
73
77
Success: Package installed.
74
78
"""
75
79
76
-
When I try `{INVOKE_WP_CLI_WITH_PHP_ARGS--dmemory_limit=10M -ddisable_functions=ini_set} package uninstall danielbachhuber/wp-cli-reset-post-date-command`
80
+
When I try `{INVOKE_WP_CLI_WITH_PHP_ARGS--dmemory_limit=10M -ddisable_functions=ini_set} package uninstall runcommand/hook`
77
81
Then the return code should not be 0
78
82
And STDERR should contain:
79
83
"""
@@ -85,7 +89,7 @@ Feature: Manage WP-CLI packages
85
89
Then the {RUN_DIR}/mypackages/composer.json file should exist
86
90
And save the {RUN_DIR}/mypackages/composer.json file as {MYPACKAGES_COMPOSER_JSON}
87
91
88
-
When I try `WP_CLI_PACKAGES_DIR={RUN_DIR}/mypackages {INVOKE_WP_CLI_WITH_PHP_ARGS--dmemory_limit=10M -ddisable_functions=ini_set} package install danielbachhuber/wp-cli-reset-post-date-command`
92
+
When I try `WP_CLI_PACKAGES_DIR={RUN_DIR}/mypackages {INVOKE_WP_CLI_WITH_PHP_ARGS--dmemory_limit=10M -ddisable_functions=ini_set} package install runcommand/hook`
0 commit comments