Selaa lähdekoodia

修改GetTask

ajun 5 vuotta sitten
vanhempi
commit
3f4d5fe27b
1 muutettua tiedostoa jossa 0 lisäystä ja 40 poistoa
  1. 0 40
      tests/Services/CacheShelfService/GetTasksTest.php

+ 0 - 40
tests/Services/CacheShelfService/GetTasksTest.php

@@ -1,40 +0,0 @@
-<?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
-    }
-
-
-}