diff --git a/phpunit/blocks/block-navigation-link-variations-test.php b/phpunit/blocks/block-navigation-link-variations-test.php index 6e70f2d1a2bb8d..aeebea1c75a383 100644 --- a/phpunit/blocks/block-navigation-link-variations-test.php +++ b/phpunit/blocks/block-navigation-link-variations-test.php @@ -117,7 +117,7 @@ public function test_navigation_link_variations_custom_post_type() { $variation = $this->get_variation_by_name( 'custom_book', $variations ); $this->assertIsArray( $variation, 'Block variation does not exist' ); $this->assertArrayHasKey( 'title', $variation, 'Block variation has no title' ); - $this->assertEquals( 'Custom Book', $variation['title'], 'Variation title is different than the post type label' ); + $this->assertSame( 'Custom Book', $variation['title'], 'Variation title is different than the post type label' ); } /** @@ -145,7 +145,7 @@ public function test_navigation_link_variations_custom_taxonomy() { $variation = $this->get_variation_by_name( 'book_type', $variations ); $this->assertIsArray( $variation, 'Block variation does not exist' ); $this->assertArrayHasKey( 'title', $variation, 'Block variation has no title' ); - $this->assertEquals( 'Book Type', $variation['title'], 'Variation title is different than the post type label' ); + $this->assertSame( 'Book Type', $variation['title'], 'Variation title is different than the post type label' ); } /**