Add api routes to get/add/remove bids for a user #172
This commit is contained in:
@@ -127,6 +127,24 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
|
||||
return $req;
|
||||
}
|
||||
|
||||
/**
|
||||
* Override the PUT calls to inject the user API key
|
||||
* @param string $uri
|
||||
* @param array $data
|
||||
* @param array $headers
|
||||
* @param null $user
|
||||
* @return \Illuminate\Foundation\Testing\TestResponse
|
||||
*/
|
||||
public function put($uri, array $data = [], array $headers = [], $user = null)
|
||||
{
|
||||
$req = parent::put($uri, $data, $this->headers($user, $headers));
|
||||
if ($req->isClientError() || $req->isServerError()) {
|
||||
Log::error('PUT Error: ' . $uri, $req->json());
|
||||
}
|
||||
|
||||
return $req;
|
||||
}
|
||||
|
||||
/**
|
||||
* Override the DELETE calls to inject the user API key
|
||||
* @param string $uri
|
||||
|
||||
Reference in New Issue
Block a user