inventory=$realService->createMission('2020-08-20','2020-08-20',''); $this->assertNull($this->inventory); } function testCreateMissionsSuccess(){ $realService=new InventoryService(); $this->inventory=$realService->createMission('2020-08-20','2020-08-20',3); $this->assertIsObject($this->inventory); $this->assertNotEmpty($this->inventory); } function tearDown(): void { InventoryMission::where('inventory_id',$this->inventory['id'])->delete(); Inventory::where('id',$this->inventory['id'])->forceDelete(); parent::tearDown(); // TODO: Change the autogenerated stub } }