@@ -194,6 +194,10 @@ Feature: Manage WordPress transient cache
194
194
Scenario : Deleting all transients on multisite
195
195
Given a WP multisite install
196
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}
197
201
198
202
When I try `wp transient delete`
199
203
Then STDERR should be:
@@ -210,7 +214,7 @@ Feature: Manage WordPress transient cache
210
214
And I run `wp transient delete --all`
211
215
Then STDOUT should be:
212
216
"""
213
- Success: 2 transients deleted from the database.
217
+ Success: {EXPECTED_TRANSIENTS} transients deleted from the database.
214
218
"""
215
219
216
220
When I try `wp transient get foo`
@@ -393,7 +397,7 @@ Feature: Manage WordPress transient cache
393
397
And I run `wp option update _site_transient_timeout_foo6 1321009871`
394
398
395
399
When I run `wp transient list --format=csv`
396
- Then STDOUT should be :
400
+ Then STDOUT should contain :
397
401
"""
398
402
name,value,expiration
399
403
foo,bar,false
@@ -438,7 +442,7 @@ Feature: Manage WordPress transient cache
438
442
And I run `wp site option update _site_transient_timeout_foo6 1321009871`
439
443
440
444
When I run `wp transient list --format=csv`
441
- Then STDOUT should be :
445
+ Then STDOUT should contain :
442
446
"""
443
447
name,value,expiration
444
448
foo,bar,false
0 commit comments