This commit is contained in:
Dylan K. Taylor
2021-04-16 21:45:22 +01:00
parent 01c3668375
commit 9abdcd8ee5

View File

@ -51,6 +51,6 @@ class ItemFactoryTest extends TestCase{
public function testGetDurableItemWithTooLargeDurability() : void{
self::assertInstanceOf(Sword::class, ItemFactory::getInstance()->get(ItemIds::WOODEN_SWORD, ToolTier::WOOD()->getMaxDurability()));
self::assertInstanceOf(Item::class, ItemFactory::getInstance()->get(ItemIds::WOODEN_SWORD, ToolTier::WOOD()->getMaxDurability() + 1));
ItemFactory::getInstance()->get(ItemIds::WOODEN_SWORD, ToolTier::WOOD()->getMaxDurability() + 1);
}
}