Update
This commit is contained in:
16
tests/Feature/LocalizedRoutesTest.php
Normal file
16
tests/Feature/LocalizedRoutesTest.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
use function Pest\Laravel\get;
|
||||
|
||||
it('renders localized frontend links on locale prefixed pages', function () {
|
||||
get('/sl')
|
||||
->assertSuccessful()
|
||||
->assertSee('/sl/contact', false)
|
||||
->assertSee('/sl', false);
|
||||
});
|
||||
|
||||
it('renders the localized terms page without falling through slug routing', function () {
|
||||
get('/sl/terms')
|
||||
->assertSuccessful()
|
||||
->assertSee('Terms', false);
|
||||
});
|
||||
Reference in New Issue
Block a user