Make WordPress Core

Changeset 54331

Timestamp:
09/27/2022 04:08:43 PM (22 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/blocks/register.php

    r54155 r54331  
    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->assert wp_styles()->get_data( 'unit-tests-test-block-style', 'rtl' ) );
    369369
    370370        // @ticket 50328
     
    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->assert wp_styles()->get_data( $expected_style_handle, 'rtl' ) );
    393393    }
    394394
Note: See TracChangeset for help on using the changeset viewer.