Skip to content

Commit bfb8a9b

Browse files
Tests: Remove obsolete page builder skip tests from cross-origin isolation.
Remove tests for the page builder action check that was moved to a separate PR (WordPress#11170). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 513471f commit bfb8a9b

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

tests/phpunit/tests/media/wpSetUpCrossOriginIsolation.php

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,11 @@
88
*/
99
class Tests_Media_wpSetUpCrossOriginIsolation extends WP_UnitTestCase {
1010

11-
/**
12-
* Original $_GET values.
13-
*
14-
* @var array
15-
*/
16-
private $original_get;
17-
1811
public function set_up() {
1912
parent::set_up();
20-
$this->original_get = $_GET;
2113
}
2214

2315
public function tear_down() {
24-
$_GET = $this->original_get;
2516
remove_all_filters( 'wp_client_side_media_processing_enabled' );
2617
parent::tear_down();
2718
}
@@ -45,27 +36,4 @@ public function test_returns_early_when_no_screen() {
4536

4637
$this->assertSame( $level_before, $level_after );
4738
}
48-
49-
public function test_skips_for_third_party_editor_action() {
50-
$_GET['action'] = 'third_party_editor';
51-
52-
$level_before = ob_get_level();
53-
wp_set_up_cross_origin_isolation();
54-
$level_after = ob_get_level();
55-
56-
$this->assertSame( $level_before, $level_after, 'Should skip when action is not "edit".' );
57-
}
58-
59-
public function test_does_not_skip_for_edit_action() {
60-
$_GET['action'] = 'edit';
61-
62-
// Still won't start the buffer because no screen is set,
63-
// but confirms the action check doesn't block 'edit'.
64-
$level_before = ob_get_level();
65-
wp_set_up_cross_origin_isolation();
66-
$level_after = ob_get_level();
67-
68-
// Returns early at the screen check, not the action check.
69-
$this->assertSame( $level_before, $level_after );
70-
}
7139
}

0 commit comments

Comments
 (0)