mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Fix test
This commit is contained in:
@ -23,6 +23,7 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace pocketmine\inventory;
|
namespace pocketmine\inventory;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\Attributes\DataProvider;
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
use pocketmine\item\Item;
|
use pocketmine\item\Item;
|
||||||
use pocketmine\item\ItemTypeIds;
|
use pocketmine\item\ItemTypeIds;
|
||||||
@ -147,10 +148,10 @@ final class CombinedInventoryProxyTest extends TestCase{
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dataProvider setContentsProvider
|
|
||||||
* @param Item[] $altItems
|
* @param Item[] $altItems
|
||||||
* @phpstan-param array<int, Item> $altItems
|
* @phpstan-param array<int, Item> $altItems
|
||||||
*/
|
*/
|
||||||
|
#[DataProvider("setContentsProvider")]
|
||||||
public function testSetContents(array $altItems) : void{
|
public function testSetContents(array $altItems) : void{
|
||||||
$backing = $this->createInventories();
|
$backing = $this->createInventories();
|
||||||
$inventory = new CombinedInventoryProxy($backing);
|
$inventory = new CombinedInventoryProxy($backing);
|
||||||
|
Reference in New Issue
Block a user