@@ -57,6 +57,9 @@ Feature: Manage WordPress transient cache
57
57
58
58
Scenario : Deleting all transients on single site
59
59
Given a WP install
60
+ # We set `WP_DEVELOPMENT_MODE` to stop WordPress from automatically creating
61
+ # additional transients which cause some steps to fail when testing.
62
+ And I run `wp config set WP_DEVELOPMENT_MODE all`
60
63
And I run `wp transient list --format=count`
61
64
And save STDOUT as {EXISTING_TRANSIENTS}
62
65
And I run `expr {EXISTING_TRANSIENTS} + 2`
@@ -193,6 +196,9 @@ Feature: Manage WordPress transient cache
193
196
194
197
Scenario : Deleting all transients on multisite
195
198
Given a WP multisite install
199
+ # We set `WP_DEVELOPMENT_MODE` to stop WordPress from automatically creating
200
+ # additional transients which cause some steps to fail when testing.
201
+ And I run `wp config set WP_DEVELOPMENT_MODE all`
196
202
And I run `wp site create --slug=foo`
197
203
And I run `wp transient list --format=count`
198
204
And save STDOUT as {EXISTING_TRANSIENTS}
@@ -420,16 +426,24 @@ Feature: Manage WordPress transient cache
420
426
"""
421
427
422
428
When I run `wp transient list --network --format=csv`
423
- Then STDOUT should be :
429
+ Then STDOUT should contain :
424
430
"""
425
- name,value,expiration
426
431
foo4,bar4,false
432
+ """
433
+ And STDOUT should contain:
434
+ """
427
435
foo5,bar5,95649119999
436
+ """
437
+ And STDOUT should contain:
438
+ """
428
439
foo6,bar6,1321009871
429
440
"""
430
441
431
442
Scenario : List transients on multisite
432
443
Given a WP multisite install
444
+ # We set `WP_DEVELOPMENT_MODE` to stop WordPress from automatically creating
445
+ # additional transients which cause some steps to fail when testing.
446
+ And I run `wp config set WP_DEVELOPMENT_MODE all`
433
447
And I run `wp transient set foo bar`
434
448
And I run `wp transient set foo2 bar2 610`
435
449
And I run `wp option update _transient_timeout_foo2 95649119999`
@@ -465,11 +479,16 @@ Feature: Manage WordPress transient cache
465
479
"""
466
480
467
481
When I run `wp transient list --network --format=csv`
468
- Then STDOUT should be :
482
+ Then STDOUT should contain :
469
483
"""
470
- name,value,expiration
471
484
foo4,bar4,false
485
+ """
486
+ And STDOUT should contain:
487
+ """
472
488
foo5,bar5,95649119999
489
+ """
490
+ And STDOUT should contain:
491
+ """
473
492
foo6,bar6,1321009871
474
493
"""
475
494
0 commit comments