From 7e1f882f60840dfadf2926d5efed9f6238ec2137 Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Sun, 23 Oct 2022 22:24:18 -0400 Subject: [PATCH] Fix tests --- .../Api/Application/Nests/NestControllerTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Integration/Api/Application/Nests/NestControllerTest.php b/tests/Integration/Api/Application/Nests/NestControllerTest.php index 9ae74a7de..11330d7f5 100644 --- a/tests/Integration/Api/Application/Nests/NestControllerTest.php +++ b/tests/Integration/Api/Application/Nests/NestControllerTest.php @@ -53,7 +53,7 @@ class NestControllerTest extends ApplicationApiIntegrationTestCase */ public function testSingleNestResponse() { - $nest = $this->repository->find(1); + $nest = Nest::query()->findOrFail(1); $response = $this->getJson('/api/application/nests/' . $nest->id); $response->assertStatus(Response::HTTP_OK); @@ -73,7 +73,7 @@ class NestControllerTest extends ApplicationApiIntegrationTestCase */ public function testSingleNestWithEggsIncluded() { - $nest = $this->repository->find(1); + $nest = Nest::query()->findOrFail(1); $nest->loadMissing('eggs'); $response = $this->getJson('/api/application/nests/' . $nest->id . '?include=servers,eggs'); @@ -106,7 +106,7 @@ class NestControllerTest extends ApplicationApiIntegrationTestCase */ public function testErrorReturnedIfNoPermission() { - $nest = $this->repository->find(1); + $nest = Nest::query()->findOrFail(1); $this->createNewDefaultApiKey($this->getApiUser(), ['r_nests' => 0]); $response = $this->getJson('/api/application/nests/' . $nest->id);