service = app(CacheShelfService::class); $this->data['station'] = factory(Station::class)->create(['name' => 'test', 'code'=> 'test']); $this->data['materialBox'] = factory(MaterialBox::class)->create(); $this->data['stationCacheShelfGrid'] = factory(StationCacheShelfGrid::class)->create([ 'station_id'=>$this->data['station']['id'], 'material_box_id'=>$this->data['materialBox']['id'], 'status' => 1 ]); } public function testPutBinToStore() { // public function putBinToStore(Station $station,MaterialBox $materialBox,StationCacheShelfGrid $grid): bool $this->service->putBinToStore($this->data['station'],$this->data['materialBox'],$this->data['stationCacheShelfGrid']); } protected function tearDown(): void { parent::tearDown(); // TODO: Change the autogenerated stub } }