| 1234567891011121314151617181920212223242526272829303132 |
- <?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->service = app(CacheShelfService::class);
- }
- public function testLightOn()
- {
- $body = $this->service->_stationCacheLightOn($this->data['code'], 'IDE0005665');
- $this->assertEquals($body->code, 200);
- }
- protected function tearDown(): void
- {
- parent::tearDown(); // TODO: Change the autogenerated stub
- }
- }
|