File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,15 @@ public function testGetNotExists()
177177
178178 $response->assertNotFound();
179179 }
180+ @if ($withAuth )
181+
182+ public function testGetNoAuth()
183+ {
184+ $response = $this->json('get', '/{{ $entities } } /1');
185+
186+ $response->assertUnauthorized();
187+ }
188+ @endif
180189
181190 public static function getSearchFilters(): array
182191 {
@@ -208,11 +217,13 @@ public function testSearch(array $filter, string $fixture)
208217 $this->assertEqualsFixture($fixture, $response->json());
209218 }
210219
220+ @if ($withAuth )
211221 public function testSearchNoAuth()
212222 {
213223 $response = $this->json('get', '/{{ $entities } } ');
214224
215225 $response->assertUnauthorized();
216226 }
217227@endif
228+ @endif
218229}
You can’t perform that action at this time.
0 commit comments