mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
Merge branch 'release/3.4'
This commit is contained in:
commit
3760307a88
@ -43,6 +43,15 @@ class ItemTest extends TestCase{
|
||||
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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user