Skip to content

Commit c576adb

Browse files
Tests: Update block registration tests to account for RTL stylesheet loading changes.
The RTL data should only be added in `register_block_style_handle()` if an RTL locale is selected, so these test expectations do not appear to be correct. Follow-up to [49982], [53091], [54330]. See #56325. git-svn-id: https://develop.svn.wordpress.org/trunk@54331 602fd350-edb4-49c9-b593-d223f7449a82
1 parent d145c50 commit c576adb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/phpunit/tests/blocks/register.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ public function test_success_register_block_style_handle() {
365365
$result = register_block_style_handle( $metadata, 'style' );
366366

367367
$this->assertSame( 'unit-tests-test-block-style', $result );
368-
$this->assertSame( 'replace', wp_styles()->get_data( 'unit-tests-test-block-style', 'rtl' ) );
368+
$this->assertFalse( wp_styles()->get_data( 'unit-tests-test-block-style', 'rtl' ) );
369369

370370
// @ticket 50328
371371
$this->assertSame(
@@ -389,7 +389,7 @@ public function test_success_register_block_style_handle_in_theme() {
389389

390390
$expected_style_handle = 'block-theme-example-block-editor-style';
391391
$this->assertSame( $expected_style_handle, $result );
392-
$this->assertSame( 'replace', wp_styles()->get_data( $expected_style_handle, 'rtl' ) );
392+
$this->assertFalse( wp_styles()->get_data( $expected_style_handle, 'rtl' ) );
393393
}
394394

395395
/**

0 commit comments

Comments
 (0)