From 0aa6626d52fc654c94fbe126306657462320ad8d Mon Sep 17 00:00:00 2001 From: Ari Stathopoulos Date: Fri, 7 May 2021 10:33:11 +0300 Subject: [PATCH] is this correct? --- tests/phpunit/tests/blocks/register.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/phpunit/tests/blocks/register.php b/tests/phpunit/tests/blocks/register.php index bedcf799e4a7b..08aaab5fc4d90 100644 --- a/tests/phpunit/tests/blocks/register.php +++ b/tests/phpunit/tests/blocks/register.php @@ -270,6 +270,10 @@ function test_success_register_block_style_handle() { $this->assertSame( 'unit-tests-test-block-style', $result ); $this->assertSame( 'replace', wp_styles()->get_data( 'unit-tests-test-block-style', 'rtl' ) ); + $this->assertSame( + wp_normalize_path( realpath( DIR_TESTDATA . '/blocks/notice/block.css' ) ), + wp_normalize_path( wp_styles()->get_data( 'unit-tests-test-block-style', 'path' ) ) + ); } /**