| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace Tests\Services\CacheShelfService;
- use App\Services\CacheShelfService;
- use Tests\TestCase;
- class StationCacheLightOnTest extends TestCase
- {
- /** @var CacheShelfService $service */
- protected $service;
- public $data = [];
- protected function setUp(): void
- {
- parent::setUp(); // TODO: Change the autogenerated stub
- $this->data['code'] = 'HAIB1-01-01'; // 修改此处可进行测试
- $this->data['materialCode'] = 'IDE0005665'; // 修改此处可进行测试
- $this->service = app(CacheShelfService::class);
- }
- public function testLightOn()
- {
- $body = $this->service->_stationCacheLightOn($this->data['code'], $this->data['materialCode']);
- $this->assertEquals($body->code, 200);
- }
- protected function tearDown(): void
- {
- parent::tearDown(); // TODO: Change the autogenerated stub
- }
- }
|