| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace Tests\Services\CacheShelfService;
- use App\Services\CacheShelfService;
- use Tests\TestCase;
- class StationCacheLightOffTest 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 testLightOff()
- {
- $body = $this->service->_stationCacheLightOff($this->data['code']);
- $this->assertEquals($body->code,200);
- }
- protected function tearDown(): void
- {
- parent::tearDown(); // TODO: Change the autogenerated stub
- }
- }
|