You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 927dd89
Browse filesBrowse the repository at this point in the historyBrowse files
Scenario: Transient database operations warn when external object cache is active
616
+
Given a WP install
617
+
618
+
When I try `wp transient list --format=count`
619
+
Then STDERR should be:
620
+
"""
621
+
Warning: Transients are stored in an external object cache, and this command only shows those stored in the database.
622
+
"""
623
+
And STDOUT should be:
624
+
"""
625
+
0
626
+
"""
627
+
And the return code should be 0
628
+
629
+
When I try `wp transient delete --all`
630
+
Then STDERR should be:
631
+
"""
632
+
Warning: Transients are stored in an external object cache, and this command only deletes those stored in the database. You must flush the cache to delete all transients.
633
+
"""
634
+
And STDOUT should be:
635
+
"""
636
+
Success: No transients found.
637
+
"""
638
+
And the return code should be 0
639
+
640
+
When I try `wp transient delete --expired`
641
+
Then STDERR should be:
642
+
"""
643
+
Warning: Transients are stored in an external object cache, and this command only deletes those stored in the database. You must flush the cache to delete all transients.
0 commit comments