Skip to content

Commit 4414ef1

Browse files
committed
Make transient test more robust against added transients by core
1 parent 1dbb59e commit 4414ef1

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

features/transient.feature

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,14 @@ Feature: Manage WordPress transient cache
405405
When I run `wp transient list --format=csv`
406406
Then STDOUT should contain:
407407
"""
408-
name,value,expiration
409408
foo,bar,false
409+
"""
410+
And STDOUT should contain:
411+
"""
410412
foo2,bar2,95649119999
413+
"""
414+
And STDOUT should contain:
415+
"""
411416
foo3,bar3,1321009871
412417
"""
413418

@@ -458,9 +463,14 @@ Feature: Manage WordPress transient cache
458463
When I run `wp transient list --format=csv`
459464
Then STDOUT should contain:
460465
"""
461-
name,value,expiration
462466
foo,bar,false
467+
"""
468+
And STDOUT should contain:
469+
"""
463470
foo2,bar2,95649119999
471+
"""
472+
And STDOUT should contain:
473+
"""
464474
foo3,bar3,1321009871
465475
"""
466476

0 commit comments

Comments
 (0)