diff --git a/tests/phpunit/tests/rest-api/rest-block-renderer-controller.php b/tests/phpunit/tests/rest-api/rest-block-renderer-controller.php index 3573ecb6e0bea..156955c9642d4 100644 --- a/tests/phpunit/tests/rest-api/rest-block-renderer-controller.php +++ b/tests/phpunit/tests/rest-api/rest-block-renderer-controller.php @@ -601,8 +601,8 @@ public function test_get_item_schema() { $this->assertArrayHasKey( 'schema', $data ); $this->assertSame( 'rendered-block', $data['schema']['title'] ); $this->assertSame( 'object', $data['schema']['type'] ); - $this->arrayHasKey( 'rendered', $data['schema']['properties'] ); - $this->arrayHasKey( 'string', $data['schema']['properties']['rendered']['type'] ); + $this->assertArrayHasKey( 'rendered', $data['schema']['properties'] ); + $this->assertSame( 'string', $data['schema']['properties']['rendered']['type'] ); $this->assertSame( array( 'edit' ), $data['schema']['properties']['rendered']['context'] ); }