1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 14:12:44 +01:00

Fixes for tests

This commit is contained in:
David Bomba 2021-08-31 18:21:06 +10:00
parent a183f058d4
commit 0aea5eb7cc
2 changed files with 4 additions and 1 deletions

View File

@ -145,4 +145,4 @@
},
"minimum-stability": "dev",
"prefer-stable": true
}
}

View File

@ -11,6 +11,7 @@
namespace Tests\Feature;
use App\DataMapper\CompanySettings;
use App\Http\Middleware\PasswordProtection;
use App\Models\Company;
use App\Models\CompanyToken;
use App\Utils\Traits\MakesHash;
@ -47,6 +48,8 @@ class CompanyTest extends TestCase
public function testCompanyList()
{
$this->withoutMiddleware(PasswordProtection::class);
$response = $this->withHeaders([
'X-API-SECRET' => config('ninja.api_secret'),
'X-API-TOKEN' => $this->token,