diff --git a/tests/phpunit/data/bedrock/CoralTypeIdMapTest.php b/tests/phpunit/data/bedrock/CoralTypeIdMapTest.php index 9a71a369c..e0e77297e 100644 --- a/tests/phpunit/data/bedrock/CoralTypeIdMapTest.php +++ b/tests/phpunit/data/bedrock/CoralTypeIdMapTest.php @@ -32,7 +32,7 @@ class CoralTypeIdMapTest extends TestCase{ foreach(CoralType::getAll() as $type){ $id = CoralTypeIdMap::getInstance()->toId($type); $type2 = CoralTypeIdMap::getInstance()->fromId($id); - self::assertTrue($type->equals($type2)); + self::assertTrue($type2 !== null && $type->equals($type2)); } } }