mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-24 20:34:02 +00:00
Added a test for Item->equals() when both items have no NBT
This commit is contained in:
parent
9b820a0849
commit
2da2fdd6d4
@ -43,6 +43,15 @@ class ItemTest extends TestCase{
|
|||||||
self::assertTrue($item->equals($item2));
|
self::assertTrue($item->equals($item2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test that same items without NBT are considered equal
|
||||||
|
*/
|
||||||
|
public function testItemEqualsNoNbt() : void{
|
||||||
|
$item1 = ItemFactory::get(Item::DIAMOND_SWORD);
|
||||||
|
$item2 = clone $item1;
|
||||||
|
self::assertTrue($item1->equals($item2));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests that blocks are considered to be valid registered items
|
* Tests that blocks are considered to be valid registered items
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user