Remove last references to removed api_key model
This commit is contained in:
parent
815ce0e451
commit
3a83a2d5ac
8 changed files with 47 additions and 167 deletions
|
@ -123,7 +123,7 @@ class NestControllerTest extends ApplicationApiIntegrationTestCase
|
|||
public function testErrorReturnedIfNoPermission()
|
||||
{
|
||||
$nest = $this->repository->find(1);
|
||||
$this->createNewDefaultApiKey($this->getApiUser(), ['r_nests' => 0]);
|
||||
$this->createNewAccessToken(['r_nests' => 0]);
|
||||
|
||||
$response = $this->getJson('/api/application/nests/' . $nest->id);
|
||||
$this->assertAccessDeniedJson($response);
|
||||
|
@ -136,7 +136,7 @@ class NestControllerTest extends ApplicationApiIntegrationTestCase
|
|||
public function testResourceIsNotExposedWithoutPermissions()
|
||||
{
|
||||
$nest = $this->repository->find(1);
|
||||
$this->createNewDefaultApiKey($this->getApiUser(), ['r_nests' => 0]);
|
||||
$this->createNewAccessToken(['r_nests' => 0]);
|
||||
|
||||
$response = $this->getJson('/api/application/nests/' . $nest->id);
|
||||
$this->assertAccessDeniedJson($response);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue