mcamara / laravel-localization

Easy localization for Laravel
MIT License
3.38k stars 515 forks source link

Default locale prefix in URL with 'hideDefaultLocaleInURL' enabled in tests #686

Closed dobrik-ardas closed 4 years ago

dobrik-ardas commented 4 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Write test by this documentation https://github.com/mcamara/laravel-localization#testing
  2. call refreshApplicationWithLocale method with default locale prefix
  3. call route('some_route_name')
  4. See generated URL with default locale prefix, which must be hidden.

Expected behavior See generated URL without default prefix.

More info:

Additional context Add any other context about the problem here.

iwasherefirst2 commented 4 years ago

Sorry I don't understand the problem. Please provide the code from your test and specify what is not working.