TaskMq.php 680 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace Tests\Feature;
  3. use Illuminate\Foundation\Testing\RefreshDatabase;
  4. use Illuminate\Foundation\Testing\WithFaker;
  5. use Tests\TestCase;
  6. class TaskMq extends TestCase
  7. {
  8. /**
  9. * A basic feature test example.
  10. *
  11. * @return void
  12. */
  13. public function test_store()
  14. {
  15. $response = $this->withHeaders([
  16. 'Authorization' => env('TEST_USER_TOKEN'),
  17. ])->json('POST', '/api/v2/task',
  18. [
  19. 'name'=>'test:md.render',
  20. 'param'=>[
  21. 'item'=>'bold',
  22. ],
  23. ]);
  24. $response->assertOk();
  25. }
  26. }