Change header from Authorization to X-API-KEY to avoid Apache issues
This commit is contained in:
@@ -37,15 +37,15 @@ class ApiTest extends TestCase
|
||||
->assertStatus(200)
|
||||
->assertJson(['icao' => $airport->icao], true);
|
||||
|
||||
$this->withHeaders(['authorization' => 'testadminapikey'])->get($uri)
|
||||
$this->withHeaders(['x-api-key' => 'testadminapikey'])->get($uri)
|
||||
->assertStatus(200)
|
||||
->assertJson(['icao' => $airport->icao], true);
|
||||
|
||||
$this->withHeaders(['AUTHORIZATION' => 'testadminapikey'])->get($uri)
|
||||
$this->withHeaders(['x-API-key' => 'testadminapikey'])->get($uri)
|
||||
->assertStatus(200)
|
||||
->assertJson(['icao' => $airport->icao], true);
|
||||
|
||||
$this->withHeaders(['AuThOrIzAtIoN' => 'testadminapikey'])->get($uri)
|
||||
$this->withHeaders(['X-API-KEY' => 'testadminapikey'])->get($uri)
|
||||
->assertStatus(200)
|
||||
->assertJson(['icao' => $airport->icao], true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user