Changeset 58181
- Timestamp:
- 05/21/2024 10:31:51 AM (5 months ago)
- Location:
- trunk/tests/phpunit/tests/block-supports
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/block-supports/border.php
r56479 r58181 5 5 * @covers ::wp_apply_border_support 6 6 */ 7 class Test _Block_Supports_Border extends WP_UnitTestCase {7 class Tests_Block_Supports_Border extends WP_UnitTestCase { 8 8 /** 9 9 * @var string|null -
trunk/tests/phpunit/tests/block-supports/layout.php
r58170 r58181 11 11 * @covers ::wp_restore_image_outer_container 12 12 */ 13 class Test _Block_Supports_Layout extends WP_UnitTestCase {13 class Tests_Block_Supports_Layout extends WP_UnitTestCase { 14 14 15 15 /** … … 311 311 public function test_restore_group_inner_container( $args, $expected_output ) { 312 312 $actual_output = wp_restore_group_inner_container( $args['block_content'], $args['block'] ); 313 $this->assert Equals( $expected_output, $actual_output );313 $this->assertSame( $expected_output, $actual_output ); 314 314 } 315 315 -
trunk/tests/phpunit/tests/block-supports/shadow.php
r56479 r58181 5 5 * @covers ::wp_apply_shadow_support 6 6 */ 7 class Test _Block_Supports_Shadow extends WP_UnitTestCase {7 class Tests_Block_Supports_Shadow extends WP_UnitTestCase { 8 8 /** 9 9 * @var string|null -
trunk/tests/phpunit/tests/block-supports/spacing.php
r56479 r58181 5 5 * @covers ::wp_apply_spacing_support 6 6 */ 7 class Test _Block_Supports_Spacing extends WP_UnitTestCase {7 class Tests_Block_Supports_Spacing extends WP_UnitTestCase { 8 8 /** 9 9 * @var string|null -
trunk/tests/phpunit/tests/block-supports/typography.php
r58171 r58181 1119 1119 */ 1120 1120 public function test_valid_size_wp_get_typography_value_and_unit( $raw_value, $expected ) { 1121 $this->assert Equals( $expected, wp_get_typography_value_and_unit( $raw_value ) );1121 $this->assertSame( $expected, wp_get_typography_value_and_unit( $raw_value ) ); 1122 1122 } 1123 1123 … … 1144 1144 'raw_value' => '10', 1145 1145 'expected' => array( 1146 'value' => 10 ,1146 'value' => 10.0, 1147 1147 'unit' => 'px', 1148 1148 ), … … 1151 1151 'raw_value' => 11, 1152 1152 'expected' => array( 1153 'value' => 11 ,1153 'value' => 11.0, 1154 1154 'unit' => 'px', 1155 1155 ), … … 1165 1165 'raw_value' => '12rem', 1166 1166 'expected' => array( 1167 'value' => 12 ,1167 'value' => 12.0, 1168 1168 'unit' => 'rem', 1169 1169 ), … … 1172 1172 'raw_value' => '12px', 1173 1173 'expected' => array( 1174 'value' => 12 ,1174 'value' => 12.0, 1175 1175 'unit' => 'px', 1176 1176 ), … … 1179 1179 'raw_value' => '12em', 1180 1180 'expected' => array( 1181 'value' => 12 ,1181 'value' => 12.0, 1182 1182 'unit' => 'em', 1183 1183 ), -
trunk/tests/phpunit/tests/block-supports/wpRenderBackgroundSupport.php
r57254 r58181 111 111 $actual = wp_render_background_support( $wrapper, $block ); 112 112 113 $this->assert Equals(113 $this->assertSame( 114 114 $expected_wrapper, 115 115 $actual, -
trunk/tests/phpunit/tests/block-supports/wpRenderDimensionsSupport.php
r57491 r58181 110 110 $actual = wp_render_dimensions_support( $wrapper, $block ); 111 111 112 $this->assert Equals(112 $this->assertSame( 113 113 $expected_wrapper, 114 114 $actual,
Note: See TracChangeset
for help on using the changeset viewer.