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
Copy file name to clipboardExpand all lines: features/bootstrap.feature
+27Lines changed: 27 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -54,3 +54,30 @@ Feature: Bootstrap WP-CLI
54
54
"""
55
55
WP-Override-CLI
56
56
"""
57
+
58
+
Scenario: Template paths should be resolved correctly when PHAR is renamed
59
+
60
+
Given an empty directory
61
+
And a new Phar with the same version
62
+
And a WP installation
63
+
And I run `wp plugin install https://github.com/wp-cli-test/generic-example-plugin/releases/download/v0.1.1/generic-example-plugin.0.1.1.zip --activate`
64
+
And I run `wp plugin deactivate generic-example-plugin`
65
+
66
+
When I run `php {PHAR_PATH} plugin status generic-example-plugin`
67
+
Then STDOUT should contain:
68
+
"""
69
+
Plugin generic-example-plugin details:
70
+
Name: Example Plugin
71
+
Status: Inactive
72
+
"""
73
+
And STDERR should be empty
74
+
75
+
When I run `cp {PHAR_PATH} wp-renamed.phar`
76
+
And I try `php wp-renamed.phar plugin status generic-example-plugin`
And I run `wp plugin install https://github.com/wp-cli-test/generic-example-plugin/releases/download/v0.1.1/generic-example-plugin.0.1.1.zip --activate`
38
+
And I run `wp plugin deactivate generic-example-plugin`
39
+
40
+
When I run `php {PHAR_PATH} plugin status generic-example-plugin`
41
+
Then STDOUT should contain:
42
+
"""
43
+
Plugin generic-example-plugin details:
44
+
Name: Example Plugin
45
+
Status: Inactive
46
+
Version: 0.1.0
47
+
Author: YOUR NAME HERE
48
+
Description: PLUGIN DESCRIPTION HERE
49
+
"""
50
+
And STDERR should be empty
51
+
52
+
When I run `cp {PHAR_PATH} wp`
53
+
And I try `php wp plugin status generic-example-plugin`
Copy file name to clipboardExpand all lines: features/requests.feature
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ Feature: Requests integration with both v1 and v2
71
71
"""
72
72
And STDERR should be empty
73
73
74
-
When I run `wp plugin install duplicate-post`
74
+
When I run `wp plugin install https://github.com/wp-cli-test/generic-example-plugin/releases/download/v0.1.1/generic-example-plugin.0.1.1.zip`
75
75
Then STDOUT should contain:
76
76
"""
77
77
Success: Installed 1 of 1 plugins.
@@ -102,7 +102,7 @@ Feature: Requests integration with both v1 and v2
102
102
"""
103
103
And STDERR should be empty
104
104
105
-
When I run `wp plugin install duplicate-post`
105
+
When I run `wp plugin install https://github.com/wp-cli-test/generic-example-plugin/releases/download/v0.1.1/generic-example-plugin.0.1.1.zip`
106
106
Then STDOUT should contain:
107
107
"""
108
108
Success: Installed 1 of 1 plugins.
@@ -212,7 +212,7 @@ Feature: Requests integration with both v1 and v2
212
212
213
213
# This can throw deprecated warnings on PHP 8.1+.
214
214
# Also, using a specific version to avoid minimum WordPress version requirement warning.
215
-
When I try `vendor/bin/wp plugin install duplicate-post --version=4.2 --activate`
215
+
When I try `vendor/bin/wp plugin install https://github.com/wp-cli-test/generic-example-plugin/releases/download/v0.1.1/generic-example-plugin.0.1.1.zip --version=4.2 --activate`
216
216
Then STDOUT should contain:
217
217
"""
218
218
Success: Installed 1 of 1 plugins.
@@ -242,5 +242,5 @@ Feature: Requests integration with both v1 and v2
0 commit comments