Skip to content

Commit dec8eae

Browse files
authored
Merge pull request #104 from wp-cli/fix/tests
Fix expired transients tests
2 parents 1b9c482 + 1fd302b commit dec8eae

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

features/transient.feature

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ Feature: Manage WordPress transient cache
127127

128128
Scenario: Deleting expired transients on single site
129129
Given a WP install
130-
And I run `wp transient set foo bar 60`
131-
And I run `wp transient set foo2 bar2 60`
132-
And I run `wp transient set foo3 bar3 60 --network`
133-
And I run `wp transient set foo4 bar4 60 --network`
130+
And I run `wp transient set foo bar 600`
131+
And I run `wp transient set foo2 bar2 600`
132+
And I run `wp transient set foo3 bar3 600 --network`
133+
And I run `wp transient set foo4 bar4 600 --network`
134134
# Change timeout to be in the past.
135135
And I run `wp option update _transient_timeout_foo 1321009871`
136136
And I run `wp option update _site_transient_timeout_foo3 1321009871`
@@ -294,12 +294,12 @@ Feature: Manage WordPress transient cache
294294
Scenario: Deleting expired transients on multisite
295295
Given a WP multisite install
296296
And I run `wp site create --slug=foo`
297-
And I run `wp transient set foo bar 60`
298-
And I run `wp transient set foo2 bar2 60`
299-
And I run `wp transient set foo3 bar3 60 --network`
300-
And I run `wp transient set foo4 bar4 60 --network`
301-
And I run `wp --url=example.com/foo transient set foo5 bar5 60 --network`
302-
And I run `wp --url=example.com/foo transient set foo6 bar6 60 --network`
297+
And I run `wp transient set foo bar 600`
298+
And I run `wp transient set foo2 bar2 600`
299+
And I run `wp transient set foo3 bar3 600 --network`
300+
And I run `wp transient set foo4 bar4 600 --network`
301+
And I run `wp --url=example.com/foo transient set foo5 bar5 600 --network`
302+
And I run `wp --url=example.com/foo transient set foo6 bar6 600 --network`
303303
# Change timeout to be in the past.
304304
And I run `wp option update _transient_timeout_foo 1321009871`
305305
And I run `wp site option update _site_transient_timeout_foo3 1321009871`

0 commit comments

Comments
 (0)