Skip to content

Commit 9803bce

Browse files
committed
Add tests with ms-required to multisite group.
1 parent e7b36f4 commit 9803bce

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎tests/phpunit/tests/secrets/networkScope.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ public function test_set_rejects_an_invalid_name(): void {
193193
* The entire point of network scope: a secret written from one blog's context
194194
* must read back identically from another blog's context. Requires multisite.
195195
*
196+
* @group multisite
196197
* @group ms-required
197198
*
198199
* @covers ::wp_set_network_secret
@@ -214,6 +215,7 @@ public function test_network_secret_is_readable_from_any_blog(): void {
214215
* proving there is no implicit fallback between scopes and no accidental sharing
215216
* across blogs for site-scope secrets.
216217
*
218+
* @group multisite
217219
* @group ms-required
218220
*
219221
* @covers ::wp_set_secret

‎tests/phpunit/tests/secrets/siteHealth.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ public function test_debug_info_omits_network_fields_on_single_site(): void {
312312
* Network secret counts appear only for a super admin on a multisite install –
313313
* never for a site administrator who is not one.
314314
*
315+
* @group multisite
315316
* @group ms-required
316317
*
317318
* @covers ::wp_secrets_site_health_debug_info

‎tests/phpunit/tests/secrets/wpSecretsKeyManager.php‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ public static function data_get_master_key_reports_an_invalid_site_id_as_a_wp_er
195195
* the multisite suite; skips under single-site since there is only one blog to
196196
* compare against.
197197
*
198+
* @group multisite
198199
* @group ms-required
199200
*
200201
* @covers WP_Secrets_Key_Manager::get_master_key
@@ -216,6 +217,7 @@ public function test_network_scope_master_key_is_identical_across_blogs(): void
216217
* Site-scope master keys, by contrast, must differ per blog even though every
217218
* blog derives from the same shared root key.
218219
*
220+
* @group multisite
219221
* @group ms-required
220222
*
221223
* @covers WP_Secrets_Key_Manager::get_master_key
@@ -241,6 +243,7 @@ public function test_site_scope_master_key_differs_across_blogs(): void {
241243
* Requires the multisite suite; skips under single-site since sitemeta and
242244
* the main site's options are the same table there.
243245
*
246+
* @group multisite
244247
* @group ms-required
245248
*
246249
* @covers WP_Secrets_Key_Manager::get_root_key
@@ -269,6 +272,7 @@ public function test_get_root_key_adopts_a_pre_conversion_root_key(): void {
269272
* Requires the multisite suite; skips under single-site for the same reason
270273
* as the adoption test above.
271274
*
275+
* @group multisite
272276
* @group ms-required
273277
*
274278
* @covers WP_Secrets_Key_Manager::get_root_key
@@ -294,6 +298,7 @@ public function test_secret_written_before_conversion_still_decrypts(): void {
294298
* Requires the multisite suite; skips under single-site for the same reason
295299
* as the adoption test above.
296300
*
301+
* @group multisite
297302
* @group ms-required
298303
*
299304
* @covers WP_Secrets_Key_Manager::rotate_site_key

0 commit comments

Comments
 (0)