Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Cannonb4ll committed Nov 16, 2023
1 parent 35cdb5a commit d407d0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/Feature/Controllers/ItemControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
$board = Board::factory()->for($project)->create();
$item = Item::factory()->for($project)->for($board)->create();

get(route('items.show', $item))->assertSeeInOrder([$project->title, $board->title, $item->title]);
get(route('projects.items.show', [$project, $item]))->assertSeeInOrder([$project->title, $board->title, $item->title]);
});

test('administer link is only available to users that can access filament', function (UserRole $userRole, bool $shouldBeVisible) {
Expand Down
3 changes: 1 addition & 2 deletions tests/Feature/Item/ViewItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@
$item = Item::first();

$this->get(route('items.show', $item->getAttributeValue('slug')))
->assertStatus(200)
->assertViewIs('item');
->assertStatus(302);

$this->assertGuest();
});
Expand Down

0 comments on commit d407d0a

Please sign in to comment.