OptionControllerTest.php 471 B

1234567891011121314151617181920
  1. <?php
  2. namespace Tests\Common\Http\Controllers;
  3. use Modules\Common\Http\Controllers\OptionController;
  4. use PHPUnit\Framework\TestCase;
  5. use Tests\UsedTestCase;
  6. class OptionControllerTest extends UsedTestCase
  7. {
  8. public function testIndex()
  9. {
  10. $res = $this->withHeaders([
  11. 'Authorization' => 'Bearer '. $this->token,
  12. ])->json('get','http://localhost/api/options/CommonParams');
  13. $res->dump();
  14. $this->dumpJson($res);
  15. }
  16. }