Skip to content

Commit 42f9d6d

Browse files
Add @ticket 64766 annotations to tests
1 parent 049f357 commit 42f9d6d

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

tests/phpunit/tests/media/wpCrossOriginIsolation.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ public function tear_down() {
3737
parent::tear_down();
3838
}
3939

40+
/**
41+
* @ticket 64766
42+
*/
4043
public function test_returns_early_when_client_side_processing_disabled() {
4144
add_filter( 'wp_client_side_media_processing_enabled', '__return_false' );
4245

@@ -48,6 +51,9 @@ public function test_returns_early_when_client_side_processing_disabled() {
4851
$this->assertSame( $level_before, $level_after );
4952
}
5053

54+
/**
55+
* @ticket 64766
56+
*/
5157
public function test_returns_early_when_no_screen() {
5258
// No screen is set, so it should return early.
5359
$level_before = ob_get_level();
@@ -58,6 +64,8 @@ public function test_returns_early_when_no_screen() {
5864
}
5965

6066
/**
67+
* @ticket 64766
68+
*
6169
* @runInSeparateProcess
6270
* @preserveGlobalState disabled
6371
*/
@@ -73,6 +81,9 @@ public function test_starts_output_buffer_for_chrome_137() {
7381
ob_end_clean();
7482
}
7583

84+
/**
85+
* @ticket 64766
86+
*/
7687
public function test_does_not_start_output_buffer_for_chrome_136() {
7788
$_SERVER['HTTP_USER_AGENT'] = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36';
7889

@@ -83,6 +94,9 @@ public function test_does_not_start_output_buffer_for_chrome_136() {
8394
$this->assertSame( $level_before, $level_after, 'Output buffer should not be started for Chrome < 137.' );
8495
}
8596

97+
/**
98+
* @ticket 64766
99+
*/
86100
public function test_does_not_start_output_buffer_for_firefox() {
87101
$_SERVER['HTTP_USER_AGENT'] = 'Mozilla/5.0 (Windows NT 10.0; rv:128.0) Gecko/20100101 Firefox/128.0';
88102

@@ -93,6 +107,9 @@ public function test_does_not_start_output_buffer_for_firefox() {
93107
$this->assertSame( $level_before, $level_after, 'Output buffer should not be started for Firefox.' );
94108
}
95109

110+
/**
111+
* @ticket 64766
112+
*/
96113
public function test_does_not_start_output_buffer_for_safari() {
97114
$_SERVER['HTTP_USER_AGENT'] = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Safari/605.1.15';
98115

@@ -104,6 +121,8 @@ public function test_does_not_start_output_buffer_for_safari() {
104121
}
105122

106123
/**
124+
* @ticket 64766
125+
*
107126
* @runInSeparateProcess
108127
* @preserveGlobalState disabled
109128
*/

0 commit comments

Comments
 (0)