Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com>
  • Loading branch information
sampoyigi committed Jan 19, 2024
1 parent 900255e commit 3e196f5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/ApiResources/CategoriesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@
it('returns all categories', function () {
Sanctum::actingAs(User::factory()->create(), ['categories:*']);

$response = $this
->get(route('igniter.api.categories.index'));

dump($response);

$response->assertOk()
$this
->get(route('igniter.api.categories.index'))
->assertOk()
->assertJsonPath('data.0.attributes', Category::first()->toArray());
});

Expand Down

0 comments on commit 3e196f5

Please sign in to comment.