@@ -57,6 +57,10 @@ Feature: Manage WordPress transient cache
57
57
58
58
Scenario : Deleting all transients on single site
59
59
Given a WP install
60
+ And I run `wp transient list --format=count`
61
+ And save STDOUT as {EXISTING_TRANSIENTS}
62
+ And I run `expr {EXISTING_TRANSIENTS} + 2`
63
+ And save STDOUT as {EXPECTED_TRANSIENTS}
60
64
61
65
When I try `wp transient delete`
62
66
Then STDERR should be:
@@ -71,7 +75,7 @@ Feature: Manage WordPress transient cache
71
75
And I run `wp transient delete --all`
72
76
Then STDOUT should be:
73
77
"""
74
- Success: 2 transients deleted from the database.
78
+ Success: {EXPECTED_TRANSIENTS} transients deleted from the database.
75
79
"""
76
80
77
81
When I try `wp transient get foo`
@@ -190,6 +194,10 @@ Feature: Manage WordPress transient cache
190
194
Scenario : Deleting all transients on multisite
191
195
Given a WP multisite install
192
196
And I run `wp site create --slug=foo`
197
+ And I run `wp transient list --format=count`
198
+ And save STDOUT as {EXISTING_TRANSIENTS}
199
+ And I run `expr {EXISTING_TRANSIENTS} + 2`
200
+ And save STDOUT as {EXPECTED_TRANSIENTS}
193
201
194
202
When I try `wp transient delete`
195
203
Then STDERR should be:
@@ -206,7 +214,7 @@ Feature: Manage WordPress transient cache
206
214
And I run `wp transient delete --all`
207
215
Then STDOUT should be:
208
216
"""
209
- Success: 2 transients deleted from the database.
217
+ Success: {EXPECTED_TRANSIENTS} transients deleted from the database.
210
218
"""
211
219
212
220
When I try `wp transient get foo`
@@ -389,7 +397,7 @@ Feature: Manage WordPress transient cache
389
397
And I run `wp option update _site_transient_timeout_foo6 1321009871`
390
398
391
399
When I run `wp transient list --format=csv`
392
- Then STDOUT should be :
400
+ Then STDOUT should contain :
393
401
"""
394
402
name,value,expiration
395
403
foo,bar,false
@@ -434,7 +442,7 @@ Feature: Manage WordPress transient cache
434
442
And I run `wp site option update _site_transient_timeout_foo6 1321009871`
435
443
436
444
When I run `wp transient list --format=csv`
437
- Then STDOUT should be :
445
+ Then STDOUT should contain :
438
446
"""
439
447
name,value,expiration
440
448
foo,bar,false
0 commit comments