From a183f058d4c5fff0cf770ca9f826b1025da0de78 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 31 Aug 2021 15:50:34 +1000 Subject: [PATCH] Password protection on company tests --- tests/Feature/CompanyTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Feature/CompanyTest.php b/tests/Feature/CompanyTest.php index 538ef194ffce..f427e88ef2fc 100644 --- a/tests/Feature/CompanyTest.php +++ b/tests/Feature/CompanyTest.php @@ -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); }