Add api routes to get/add/remove bids for a user #172

This commit is contained in:
Nabeel Shahzad
2018-02-22 10:44:15 -06:00
parent e176772512
commit 6dfab75f08
8 changed files with 120 additions and 362 deletions

View File

@@ -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