| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace Tests\Services\CacheShelfService;
- use App\MaterialBox;
- use App\Services\CacheShelfService;
- use App\Station;
- use Tests\TestCase;
- class GetTasksTest extends TestCase
- {
- /** @var CacheShelfService $service */
- protected $service;
- protected $data = [];
- protected function setup(): void
- {
- parent::setup();
- $this->service = app(CacheShelfService::class);
- $this->data['parentStation'] = factory(Station::class)->create(['code' => '']);
- $this->data['station'] = factory(Station::class)->create(['code'=>'','parent_id'=>$this->data['parentStation']['id']]);
- $this->data['materialBox']=factory(MaterialBox::class)->create(['code'=> '']);
- }
- public function testGetTasks()
- {
- $grids = $this->service->getTasks($this->data['station']);
- }
- protected function tearDown(): void
- {
- Station::query()->where('id', $this->data['station']['id'])->delete();
- parent::tearDown(); // TODO: Change the autogenerated stub
- }
- }
|