Changeset 58462
- Timestamp:
- 06/23/2024 11:38:49 AM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme/wpGetBlockCssSelector.php
r56536 r58462 48 48 49 49 $selector = wp_get_block_css_selector( $block_type ); 50 $this->assert Equals( '.wp-custom-block-class', $selector );50 $this->assertSame( '.wp-custom-block-class', $selector ); 51 51 } 52 52 … … 62 62 63 63 $selector = wp_get_block_css_selector( $block_type ); 64 $this->assert Equals( '.experimental-selector', $selector );64 $this->assertSame( '.experimental-selector', $selector ); 65 65 } 66 66 … … 76 76 77 77 $selector = wp_get_block_css_selector( $block_type ); 78 $this->assert Equals( '.wp-block-without-selectors-or-supports', $selector );78 $this->assertSame( '.wp-block-without-selectors-or-supports', $selector ); 79 79 } 80 80 … … 90 90 91 91 $selector = wp_get_block_css_selector( $block_type ); 92 $this->assert Equals( '.wp-block-test-without-selectors-or-supports', $selector );92 $this->assertSame( '.wp-block-test-without-selectors-or-supports', $selector ); 93 93 } 94 94 … … 104 104 105 105 $selector = wp_get_block_css_selector( $block_type, 'typography' ); 106 $this->assert Equals( '.typography', $selector );106 $this->assertSame( '.typography', $selector ); 107 107 } 108 108 … … 118 118 119 119 $selector = wp_get_block_css_selector( $block_type, 'typography' ); 120 $this->assert Equals( '.typography', $selector );120 $this->assertSame( '.typography', $selector ); 121 121 } 122 122 … … 132 132 133 133 $selector = wp_get_block_css_selector( $block_type, 'typography' ); 134 $this->assert Equals( null, $selector );134 $this->assertSame( null, $selector ); 135 135 } 136 136 … … 146 146 147 147 $selector = wp_get_block_css_selector( $block_type, 'typography', true ); 148 $this->assert Equals( '.wp-block-test-fallback-feature-selector', $selector );148 $this->assertSame( '.wp-block-test-fallback-feature-selector', $selector ); 149 149 } 150 150 … … 160 160 161 161 $selector = wp_get_block_css_selector( $block_type, 'typography', true ); 162 $this->assert Equals( '.fallback-root-selector', $selector );162 $this->assertSame( '.fallback-root-selector', $selector ); 163 163 } 164 164 … … 178 178 179 179 $selector = wp_get_block_css_selector( $block_type, 'typography' ); 180 $this->assert Equals( '.wp-block-test-experimental-feature-selector .experimental-typography', $selector );180 $this->assertSame( '.wp-block-test-experimental-feature-selector .experimental-typography', $selector ); 181 181 } 182 182 … … 192 192 193 193 $selector = wp_get_block_css_selector( $block_type, 'typography', true ); 194 $this->assert Equals( '.wp-block-test-fallback-feature-selector', $selector );194 $this->assertSame( '.wp-block-test-fallback-feature-selector', $selector ); 195 195 } 196 196 … … 206 206 207 207 $selector = wp_get_block_css_selector( $block_type, 'typography' ); 208 $this->assert Equals( null, $selector );208 $this->assertSame( null, $selector ); 209 209 } 210 210 … … 228 228 ); 229 229 230 $this->assert Equals( '.root .typography .text-decoration', $selector );230 $this->assertSame( '.root .typography .text-decoration', $selector ); 231 231 } 232 232 … … 249 249 ); 250 250 251 $this->assert Equals( '.root .typography', $selector );251 $this->assertSame( '.root .typography', $selector ); 252 252 } 253 253 … … 263 263 264 264 $selector = wp_get_block_css_selector( $block_type, array( 'typography', 'fontSize' ) ); 265 $this->assert Equals( null, $selector );265 $this->assertSame( null, $selector ); 266 266 } 267 267 … … 281 281 true 282 282 ); 283 $this->assert Equals( '.wp-block-test-fallback-subfeature-selector', $selector );283 $this->assertSame( '.wp-block-test-fallback-subfeature-selector', $selector ); 284 284 } 285 285 … … 298 298 array( 'typography', 'fontSize' ) 299 299 ); 300 $this->assert Equals( null, $selector );300 $this->assertSame( null, $selector ); 301 301 } 302 302 … … 312 312 313 313 $selector = wp_get_block_css_selector( $block_type, array() ); 314 $this->assert Equals( null, $selector );314 $this->assertSame( null, $selector ); 315 315 316 316 $selector = wp_get_block_css_selector( $block_type, '' ); 317 $this->assert Equals( null, $selector );317 $this->assertSame( null, $selector ); 318 318 } 319 319 … … 329 329 330 330 $selector = wp_get_block_css_selector( $block_type, 'typography' ); 331 $this->assert Equals( '.found', $selector );331 $this->assertSame( '.found', $selector ); 332 332 333 333 $selector = wp_get_block_css_selector( $block_type, array( 'typography' ) ); 334 $this->assert Equals( '.found', $selector );334 $this->assertSame( '.found', $selector ); 335 335 } 336 336 … … 348 348 349 349 $selector = wp_get_block_css_selector( $block_type, 'typography.fontSize' ); 350 $this->assert Equals( '.found', $selector );350 $this->assertSame( '.found', $selector ); 351 351 352 352 $selector = wp_get_block_css_selector( $block_type, array( 'typography', 'fontSize' ) ); 353 $this->assert Equals( '.found', $selector );353 $this->assertSame( '.found', $selector ); 354 354 } 355 355 }
Note: See TracChangeset
for help on using the changeset viewer.