Skip to content

Commit b41d4e7

Browse files
committed
Split setup and tests to make clear what's actually tested
1 parent 814750b commit b41d4e7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

features/transient.feature

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,15 @@ Feature: Manage WordPress transient cache
118118

119119
Scenario: Deleting expired transients on single site
120120
Given a WP install
121-
122-
When I run `wp transient set foo bar 60`
121+
And I run `wp transient set foo bar 60`
123122
And I run `wp transient set foo2 bar2 60`
124123
And I run `wp transient set foo3 bar3 60 --network`
125124
And I run `wp transient set foo4 bar4 60 --network`
126125
# Change timeout to be in the past.
127126
And I run `wp option update _transient_timeout_foo 1321009871`
128127
And I run `wp option update _site_transient_timeout_foo3 1321009871`
129-
And I run `wp transient delete --expired`
128+
129+
When I run `wp transient delete --expired`
130130
Then STDOUT should be:
131131
"""
132132
Success: 1 expired transient deleted from the database.
@@ -278,8 +278,7 @@ Feature: Manage WordPress transient cache
278278
Scenario: Deleting expired transients on multisite
279279
Given a WP multisite install
280280
And I run `wp site create --slug=foo`
281-
282-
When I run `wp transient set foo bar 60`
281+
And I run `wp transient set foo bar 60`
283282
And I run `wp transient set foo2 bar2 60`
284283
And I run `wp transient set foo3 bar3 60 --network`
285284
And I run `wp transient set foo4 bar4 60 --network`
@@ -289,7 +288,8 @@ Feature: Manage WordPress transient cache
289288
And I run `wp option update _transient_timeout_foo 1321009871`
290289
And I run `wp site option update _site_transient_timeout_foo3 1321009871`
291290
And I run `wp --url=example.com/foo site option update _site_transient_timeout_foo5 1321009871`
292-
And I run `wp transient delete --expired`
291+
292+
When I run `wp transient delete --expired`
293293
Then STDOUT should be:
294294
"""
295295
Success: 1 expired transient deleted from the database.

0 commit comments

Comments
 (0)