diff --git a/tests/phpunit/tests/blocks/register.php b/tests/phpunit/tests/blocks/register.php index 1bb579e9928c3..2e17ad734368b 100644 --- a/tests/phpunit/tests/blocks/register.php +++ b/tests/phpunit/tests/blocks/register.php @@ -561,7 +561,7 @@ public function test_register_block_type_accepts_editor_script_array() { $registry = WP_Block_Type_Registry::get_instance(); $registered = $registry->get_all_registered(); - $actual = json_encode( $registered['core/test-static']->editor_script ); + $actual = $registered['core/test-static']->editor_script; $this->assertSame( $settings['editor_script'], $actual ); }