mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
Added failing test case for #2483
This commit is contained in:
parent
ec5af0398e
commit
9284e53f9e
@ -76,4 +76,12 @@ class ItemTest extends TestCase{
|
||||
self::assertEquals($id, $item->getId());
|
||||
self::assertEquals($meta, $item->getDamage());
|
||||
}
|
||||
|
||||
/**
|
||||
* Test that durable items are correctly created by the item factory
|
||||
*/
|
||||
public function testGetDurableItem() : void{
|
||||
self::assertInstanceOf(Sword::class, ItemFactory::get(Item::WOODEN_SWORD));
|
||||
self::assertInstanceOf(Sword::class, ItemFactory::get(Item::WOODEN_SWORD, 1));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user