Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Jan 23, 2025
1 parent ed1f624 commit 82b6df0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Data/Taxonomies/ViewsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ public function it_loads_the_term_url_if_the_view_exists()
$this->get('/tags/test')->assertOk()->assertSeeText('showing Test');
}

#[Test]
public function it_doesnt_load_the_term_url_if_there_are_additional_segments()
{
$this->viewShouldReturnRaw('tags.show', 'showing {{ title }}');

$this->get('/tags/test/extra/segments')->assertNotFound();
}

#[Test]
public function it_loads_the_localized_term_url_if_the_view_exists()
{
Expand Down

0 comments on commit 82b6df0

Please sign in to comment.