Fixed bogus test expectations

This commit is contained in:
Dylan K. Taylor 2023-04-28 20:05:51 +01:00
parent 2121152b76
commit 263e1e9950
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -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{