Change tests to use generated user

This commit is contained in:
Nabeel Shahzad
2018-01-04 21:05:26 -06:00
parent 265fb235f2
commit db3c60987e
8 changed files with 60 additions and 40 deletions

View File

@@ -27,11 +27,12 @@ abstract class TestCase extends Illuminate\Foundation\Testing\TestCase
return self::$auth_headers;
}
public function headers($api_key)
public function headers($user)
{
return [
'content-type' => 'application/json',
'x-api-key' => $api_key
#'accept' => 'application/json',
#'content-type' => 'application/json',
'x-api-key' => $user->api_key,
];
}