Skip to content

Commit 3189f29

Browse files
ellatrixclaude
andcommitted
Tests: Update registerMeta test expectations for invalidates_query_cache
Add the new invalidates_query_cache default (true) to existing test assertions that check the full shape of registered meta key args. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 314106c commit 3189f29

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

tests/phpunit/tests/meta/registerMeta.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ public function test_register_meta_with_post_object_type_populates_wp_meta_keys(
9898
'sanitize_callback' => null,
9999
'auth_callback' => '__return_true',
100100
'show_in_rest' => false,
101-
'revisions_enabled' => false,
101+
'revisions_enabled' => false,
102+
'invalidates_query_cache' => true,
102103
),
103104
),
104105
),
@@ -124,7 +125,8 @@ public function test_register_meta_with_term_object_type_populates_wp_meta_keys(
124125
'sanitize_callback' => null,
125126
'auth_callback' => '__return_true',
126127
'show_in_rest' => false,
127-
'revisions_enabled' => false,
128+
'revisions_enabled' => false,
129+
'invalidates_query_cache' => true,
128130
),
129131
),
130132
),
@@ -180,7 +182,8 @@ public function test_register_meta_with_current_sanitize_callback_populates_wp_m
180182
'sanitize_callback' => array( $this, '_new_sanitize_meta_cb' ),
181183
'auth_callback' => '__return_true',
182184
'show_in_rest' => false,
183-
'revisions_enabled' => false,
185+
'revisions_enabled' => false,
186+
'invalidates_query_cache' => true,
184187
),
185188
),
186189
),
@@ -362,7 +365,8 @@ public function test_register_meta_with_subtype_populates_wp_meta_keys( $type, $
362365
'sanitize_callback' => null,
363366
'auth_callback' => '__return_true',
364367
'show_in_rest' => false,
365-
'revisions_enabled' => false,
368+
'revisions_enabled' => false,
369+
'invalidates_query_cache' => true,
366370
),
367371
),
368372
),
@@ -417,7 +421,8 @@ public function test_unregister_meta_without_subtype_keeps_subtype_meta_key( $ty
417421
'sanitize_callback' => null,
418422
'auth_callback' => '__return_true',
419423
'show_in_rest' => false,
420-
'revisions_enabled' => false,
424+
'revisions_enabled' => false,
425+
'invalidates_query_cache' => true,
421426
),
422427
),
423428
),

0 commit comments

Comments
 (0)