Skip to content

Commit 9b4e013

Browse files
committed
Remove order-dependent is_block_editor guard test
1 parent 7a2885b commit 9b4e013

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

tests/Unit/Helpers/Current_Page_Helper_Test.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -937,22 +937,6 @@ public function test_is_trash_overview_without_status() {
937937
$this->assertFalse( $this->instance->is_trash_overview() );
938938
}
939939

940-
/**
941-
* Test is_block_editor function when get_current_screen() is not available.
942-
*
943-
* @covers ::is_block_editor
944-
*
945-
* @return void
946-
*/
947-
public function test_is_block_editor_without_get_current_screen_function() {
948-
// A previously mocked get_current_screen() persists for the rest of the process, making the guard untestable.
949-
if ( \function_exists( 'get_current_screen' ) ) {
950-
$this->markTestSkipped( 'get_current_screen() has already been defined by another test.' );
951-
}
952-
953-
$this->assertFalse( $this->instance->is_block_editor() );
954-
}
955-
956940
/**
957941
* Test is_block_editor function when there is no current screen.
958942
*

0 commit comments

Comments
 (0)