Skip to content

Commit 5e976a8

Browse files
Mark data provider as static method
1 parent 99cee69 commit 5e976a8

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

plugins/auto-sizes/tests/test-improve-calculate-sizes.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function test_image_block_with_wide_alignment( string $image_size ): void
121121
*
122122
* @return array<array<string>> The image sizes.
123123
*/
124-
public function data_image_sizes(): array {
124+
public static function data_image_sizes(): array {
125125
return array(
126126
'Return full or wideSize 1280px instead of medium size 300px' => array(
127127
'medium',
@@ -177,7 +177,7 @@ public function test_image_block_with_default_alignment( string $image_size, str
177177
*
178178
* @return array<string, array<int, bool|string>> The image sizes.
179179
*/
180-
public function data_image_sizes_for_default_alignment(): array {
180+
public static function data_image_sizes_for_default_alignment(): array {
181181
return array(
182182
'Return medium image size 300px instead of contentSize 620px' => array(
183183
'medium',
@@ -252,7 +252,7 @@ public function test_image_block_with_left_right_center_alignment( string $image
252252
*
253253
* @return array<string, array<int, bool|string>> The image sizes and alignments.
254254
*/
255-
public function data_image_sizes_for_left_right_center_alignment(): array {
255+
public static function data_image_sizes_for_left_right_center_alignment(): array {
256256
return array(
257257
'Return medium image size 300px with left alignment' => array(
258258
'medium',
@@ -382,7 +382,7 @@ public function test_cover_block_with_left_right_center_alignment( string $align
382382
*
383383
* @return array<array<string>> The image sizes.
384384
*/
385-
public function data_image_left_right_center_alignment(): array {
385+
public static function data_image_left_right_center_alignment(): array {
386386
return array(
387387
array( 'left', 'sizes="(max-width: 420px) 100vw, 420px' ),
388388
array( 'right', 'sizes="(max-width: 420px) 100vw, 420px' ),
@@ -430,7 +430,7 @@ public function test_ancestor_layout_is_passed_by_context( string $ancestor_bloc
430430
*
431431
* @return array<string, array<int, bool|string>> The ancestor and image alignments.
432432
*/
433-
public function data_ancestor_and_image_block_alignment(): array {
433+
public static function data_ancestor_and_image_block_alignment(): array {
434434
return array(
435435
// Parent default alignment.
436436
'Return contentSize 620px, parent block default alignment, image block default alignment' => array(
@@ -559,7 +559,7 @@ public function test_sizes_with_relative_layout_sizes( string $ancestor_alignmen
559559
*
560560
* @return array<string, array<int, bool|string>> The ancestor and image alignments.
561561
*/
562-
public function data_image_blocks_with_relative_alignment(): array {
562+
public static function data_image_blocks_with_relative_alignment(): array {
563563
return array(
564564
// Parent default alignment.
565565
'Return contentSize 50vw, parent block default alignment, image block default alignment' => array(
@@ -649,7 +649,7 @@ public function test_image_block_with_different_alignment_in_classic_theme( stri
649649
*
650650
* @return array<array<string>> The ancestor and image alignments.
651651
*/
652-
public function data_image_blocks_with_relative_alignment_for_classic_theme(): array {
652+
public static function data_image_blocks_with_relative_alignment_for_classic_theme(): array {
653653
return array(
654654
array( '' ),
655655
array( 'wide' ),
@@ -686,7 +686,7 @@ public function test_image_block_with_single_column_block( string $ancestor_bloc
686686
*
687687
* @return array<string, array<int, bool|string>> The ancestor and image alignments.
688688
*/
689-
public function data_image_block_with_column_block(): array {
689+
public static function data_image_block_with_column_block(): array {
690690
return array(
691691
// Parent default alignment.
692692
'Return contentSize 620px, parent block default alignment, image block default alignment' => array(
@@ -822,7 +822,7 @@ public function test_image_block_with_two_equal_column_block( string $ancestor_b
822822
*
823823
* @return array<string, array<int, bool|string>> The ancestor and image alignments.
824824
*/
825-
public function data_image_block_with_two_equal_column_block(): array {
825+
public static function data_image_block_with_two_equal_column_block(): array {
826826
return array(
827827
// Parent default alignment.
828828
'Return half size of contentSize 310px, parent block default alignment, image block default alignment' => array(
@@ -958,7 +958,7 @@ public function test_image_block_with_two_different_width_column_block( string $
958958
*
959959
* @return array<string, array<int, bool|string>> The ancestor and image alignments.
960960
*/
961-
public function data_image_block_with_two_different_width_column_block(): array {
961+
public static function data_image_block_with_two_different_width_column_block(): array {
962962
return array(
963963
// Parent default alignment.
964964
'Return 66.66% width of contentSize 413px, parent block default alignment, image block default alignment' => array(
@@ -1100,7 +1100,7 @@ public function test_image_block_with_parent_columns_and_its_parent_group_block(
11001100
*
11011101
* @return array<string, array<int, string>> The ancestor and image alignments.
11021102
*/
1103-
public function data_image_block_with_parent_columns_and_its_parent_group_block(): array {
1103+
public static function data_image_block_with_parent_columns_and_its_parent_group_block(): array {
11041104
return array(
11051105
// Parent default alignment.
11061106
'Return 66.66% width of contentSize 413px, group block default alignment, columns block default alignment, image block default alignment' => array(
@@ -1322,7 +1322,7 @@ public function test_post_featured_image_block_with_different_image_size( string
13221322
*
13231323
* @return array<array<string>> The image sizes.
13241324
*/
1325-
public function data_post_featured_image_block_image_sizes(): array {
1325+
public static function data_post_featured_image_block_image_sizes(): array {
13261326
return array(
13271327
'Return medium image size 300px' => array(
13281328
'medium',
@@ -1371,7 +1371,7 @@ public function test_post_featured_image_block_with_different_alignment( string
13711371
*
13721372
* @return array<array<string>> The image sizes.
13731373
*/
1374-
public function data_post_featured_image_block_alignment(): array {
1374+
public static function data_post_featured_image_block_alignment(): array {
13751375
return array(
13761376
'Return contentSize 620px instead of image size 1080px, block default alignment' => array(
13771377
'',

0 commit comments

Comments
 (0)