Skip to content

Commit bbc0fdf

Browse files
committed
test: Remove untestable "requires support" scenarios
WP 6.1+ default in-memory cache reports flush_group support via wp_cache_supports(), and wp_using_ext_object_cache() returns true under the SQLite test driver, so neither check reliably gates these scenarios in CI. Removing the scenarios until a proper object-cache drop-in test harness is available.
1 parent 8652b1f commit bbc0fdf

1 file changed

Lines changed: 0 additions & 49 deletions

File tree

‎features/cache-flush-granular.feature‎

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@ Feature: Granular cache flushing operations
1919
Success: Post cache for ID 123 cleared.
2020
"""
2121

22-
@skip-object-cache
23-
Scenario: Flush all posts cache requires support
24-
Given a WP install
25-
26-
When I try `wp cache flush-post`
27-
Then STDERR should contain:
28-
"""
29-
Flushing all post caches requires WordPress 6.1+
30-
"""
31-
3222
@skip-object-cache
3323
Scenario: Flush specific term cache
3424
Given a WP install
@@ -48,16 +38,6 @@ Feature: Granular cache flushing operations
4838
Success: Term cache for ID 5 cleared.
4939
"""
5040

51-
@skip-object-cache
52-
Scenario: Flush all terms cache requires support
53-
Given a WP install
54-
55-
When I try `wp cache flush-term`
56-
Then STDERR should contain:
57-
"""
58-
Flushing all term caches requires WordPress 6.1+
59-
"""
60-
6141
@skip-object-cache
6242
Scenario: Flush specific comment cache
6343
Given a WP install
@@ -77,16 +57,6 @@ Feature: Granular cache flushing operations
7757
Success: Comment cache for ID 42 cleared.
7858
"""
7959

80-
@skip-object-cache
81-
Scenario: Flush all comments cache requires support
82-
Given a WP install
83-
84-
When I try `wp cache flush-comment`
85-
Then STDERR should contain:
86-
"""
87-
Flushing all comment caches requires WordPress 6.1+
88-
"""
89-
9060
@skip-object-cache
9161
Scenario: Flush specific user cache
9262
Given a WP install
@@ -106,16 +76,6 @@ Feature: Granular cache flushing operations
10676
Success: User cache for ID 1 cleared.
10777
"""
10878

109-
@skip-object-cache
110-
Scenario: Flush all users cache requires support
111-
Given a WP install
112-
113-
When I try `wp cache flush-user`
114-
Then STDERR should contain:
115-
"""
116-
Flushing all user caches requires WordPress 6.1+
117-
"""
118-
11979
@skip-object-cache
12080
Scenario: Flush specific option cache
12181
Given a WP install
@@ -135,13 +95,4 @@ Feature: Granular cache flushing operations
13595
Success: Option cache for 'my_option' cleared.
13696
"""
13797

138-
@skip-object-cache
139-
Scenario: Flush all options cache requires support
140-
Given a WP install
141-
142-
When I try `wp cache flush-option`
143-
Then STDERR should contain:
144-
"""
145-
Flushing all option caches requires WordPress 6.1+
146-
"""
14798

0 commit comments

Comments
 (0)