StationCacheLightOffTest.php 758 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace Tests\Services\CacheShelfService;
  3. use App\Services\CacheShelfService;
  4. use Tests\TestCase;
  5. class StationCacheLightOffTest extends TestCase
  6. {
  7. /** @var CacheShelfService $service */
  8. protected $service;
  9. public $data = [];
  10. protected function setUp(): void
  11. {
  12. parent::setUp(); // TODO: Change the autogenerated stub
  13. $this->data['code'] = 'HAIB1-01-01';
  14. $this->service = app(CacheShelfService::class);
  15. }
  16. public function testLightOff()
  17. {
  18. $body = $this->service->_stationCacheLightOff($this->data['code']);
  19. $this->assertEquals($body->code,200);
  20. }
  21. protected function tearDown(): void
  22. {
  23. parent::tearDown(); // TODO: Change the autogenerated stub
  24. }
  25. }