StationCacheLightOnTest.php 769 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Tests\Services\CacheShelfService;
  3. use App\Services\CacheShelfService;
  4. use Tests\TestCase;
  5. class StationCacheLightOnTest 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 testLightOn()
  17. {
  18. $body = $this->service->_stationCacheLightOn($this->data['code'], 'IDE0005665');
  19. $this->assertEquals($body->code, 200);
  20. }
  21. protected function tearDown(): void
  22. {
  23. parent::tearDown(); // TODO: Change the autogenerated stub
  24. }
  25. }