diff --git a/tests/Data/Taxonomies/ViewsTest.php b/tests/Data/Taxonomies/ViewsTest.php index 812488cb9d..45463a4e48 100644 --- a/tests/Data/Taxonomies/ViewsTest.php +++ b/tests/Data/Taxonomies/ViewsTest.php @@ -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() {