Skip to content

Commit 7fd686a

Browse files
committed
Use try if expecting failure
1 parent 2ce6a77 commit 7fd686a

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

features/package-install.feature

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Feature: Install WP-CLI packages
126126
fzaninotto
127127
"""
128128

129-
When I run `wp package is-installed yoast/wp-cli-faker`
129+
When I try `wp package is-installed yoast/wp-cli-faker`
130130
Then the return code should be 1
131131
And STDERR should be empty
132132
And STDOUT should be empty
@@ -225,7 +225,7 @@ Feature: Install WP-CLI packages
225225
Success: Uninstalled package.
226226
"""
227227

228-
When I run `wp package is-installed wp-cli/google-sitemap-generator-cli`
228+
When I try `wp package is-installed wp-cli/google-sitemap-generator-cli`
229229
Then the return code should be 1
230230
And STDERR should be empty
231231
And STDOUT should be empty
@@ -367,7 +367,7 @@ Feature: Install WP-CLI packages
367367
Success: Uninstalled package.
368368
"""
369369
370-
When I run `wp package is-installed wp-cli-test/github-test-command`
370+
When I try `wp package is-installed wp-cli-test/github-test-command`
371371
Then the return code should be 1
372372
And STDERR should be empty
373373
And STDOUT should be empty
@@ -428,7 +428,7 @@ Feature: Install WP-CLI packages
428428
Success: Uninstalled package.
429429
"""
430430
431-
When I run `wp package is-installed wp-cli-test/github-test-command`
431+
When I try `wp package is-installed wp-cli-test/github-test-command`
432432
Then the return code should be 1
433433
And STDERR should be empty
434434
And STDOUT should be empty
@@ -496,7 +496,7 @@ Feature: Install WP-CLI packages
496496
Success: Uninstalled package.
497497
"""
498498
499-
When I run `wp package is-installed wp-cli-test/github-test-command`
499+
When I try `wp package is-installed wp-cli-test/github-test-command`
500500
Then the return code should be 1
501501
And STDERR should be empty
502502
And STDOUT should be empty
@@ -557,7 +557,7 @@ Feature: Install WP-CLI packages
557557
Success: Uninstalled package.
558558
"""
559559
560-
When I run `wp package is-installed wp-cli-test/github-test-command`
560+
When I try `wp package is-installed wp-cli-test/github-test-command`
561561
Then the return code should be 1
562562
And STDERR should be empty
563563
And STDOUT should be empty
@@ -618,7 +618,7 @@ Feature: Install WP-CLI packages
618618
Success: Uninstalled package.
619619
"""
620620
621-
When I run `wp package is-installed wp-cli-test/github-test-command`
621+
When I try `wp package is-installed wp-cli-test/github-test-command`
622622
Then the return code should be 1
623623
And STDERR should be empty
624624
And STDOUT should be empty
@@ -689,7 +689,7 @@ Feature: Install WP-CLI packages
689689
rocket
690690
"""
691691
692-
When I run `wp package is-installed wp-media/wp-rocket-cli`
692+
When I try `wp package is-installed wp-media/wp-rocket-cli`
693693
Then the return code should be 1
694694
And STDERR should be empty
695695
And STDOUT should be empty
@@ -743,7 +743,7 @@ Feature: Install WP-CLI packages
743743
rocket
744744
"""
745745
746-
When I run `wp package is-installed geekpress/wp-rocket-cli`
746+
When I try `wp package is-installed geekpress/wp-rocket-cli`
747747
Then the return code should be 1
748748
And STDERR should be empty
749749
And STDOUT should be empty
@@ -852,7 +852,7 @@ Feature: Install WP-CLI packages
852852
Success: Uninstalled package.
853853
"""
854854
855-
When I run `wp package is-installed wp-cli/google-sitemap-generator-cli`
855+
When I try `wp package is-installed wp-cli/google-sitemap-generator-cli`
856856
Then the return code should be 1
857857
And STDERR should be empty
858858
And STDOUT should be empty
@@ -986,7 +986,7 @@ Feature: Install WP-CLI packages
986986
Success: Uninstalled package.
987987
"""
988988
989-
When I run `wp package is-installed wp-cli/google-sitemap-generator-cli`
989+
When I try `wp package is-installed wp-cli/google-sitemap-generator-cli`
990990
Then the return code should be 1
991991
And STDERR should be empty
992992
And STDOUT should be empty
@@ -1085,7 +1085,7 @@ Feature: Install WP-CLI packages
10851085
"""
10861086
And the path-command directory should exist
10871087
1088-
When I run `wp package is-installed wp-cli/community-command`
1088+
When I try `wp package is-installed wp-cli/community-command`
10891089
Then the return code should be 1
10901090
And STDERR should be empty
10911091
And STDOUT should be empty
@@ -1174,7 +1174,7 @@ Feature: Install WP-CLI packages
11741174
"""
11751175
And the path-command directory should exist
11761176
1177-
When I run `wp package is-installed wp-cli/community-command`
1177+
When I try `wp package is-installed wp-cli/community-command`
11781178
Then the return code should be 1
11791179
And STDERR should be empty
11801180
And STDOUT should be empty

0 commit comments

Comments
 (0)