diff --git a/tests/phpunit/data/bedrock/block/upgrade/BlockStateUpgraderTest.php b/tests/phpunit/data/bedrock/block/upgrade/BlockStateUpgraderTest.php index 86ba0f67b..39013d615 100644 --- a/tests/phpunit/data/bedrock/block/upgrade/BlockStateUpgraderTest.php +++ b/tests/phpunit/data/bedrock/block/upgrade/BlockStateUpgraderTest.php @@ -107,7 +107,8 @@ class BlockStateUpgraderTest extends TestCase{ $stateData = $getStateData(); $upgradedStateData = $this->upgrade($stateData, $getStateData); - self::assertSame($stateData, $upgradedStateData, "Adding a property that already exists with a different value should not alter the state"); + //the object may not be the same due to + self::assertTrue($stateData->equals($upgradedStateData), "Adding a property that already exists with a different value should not alter the state"); } private function prepareRemovePropertySchema(BlockStateUpgradeSchema $schema) : void{