Password protection on company tests

This commit is contained in:
David Bomba 2021-08-31 15:50:34 +10:00
parent 700fd6bf99
commit a183f058d4

View File

@ -117,6 +117,7 @@ class CompanyTest extends TestCase
$response = $this->withHeaders([
'X-API-SECRET' => config('ninja.api_secret'),
'X-API-TOKEN' => $this->token,
'X-API-PASSWORD' => 'ALongAndBriliantPassword',
])->delete('/api/v1/companies/'.$this->encodePrimaryKey($company->id))
->assertStatus(200);
}