ShareTest.php 782 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Tests\Feature;
  3. use Illuminate\Foundation\Testing\RefreshDatabase;
  4. use Illuminate\Foundation\Testing\WithFaker;
  5. use Tests\TestCase;
  6. class ShareTest extends TestCase
  7. {
  8. /**
  9. * A basic feature test example.
  10. *
  11. * @return void
  12. */
  13. public function test_example()
  14. {
  15. $token = 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJuYmYiOjE2NjgyMzE3MTksImV4cCI6MTY5OTc2NzcxOSwidWlkIjoiYmE1NDYzZjMtNzJkMS00NDEwLTg1OGUtZWFkZDEwODg0NzEzIiwiaWQiOiI0In0.LV4ItC5VCqXpbKIXT1zePcnfi-heCf3Df63w7qbXsT1i5KJtwJJC938CLgANjqwcQFa3lrR5TqvT1kkqD-Mmgg';
  16. $response = $this->withHeaders([
  17. 'Authorization' => $token,
  18. ])->get('/api/v2/share?view=group&id=8079d293-5057-449f-b8b2-6482531d2434');
  19. $response->assertOk();
  20. }
  21. }