@@ -18,6 +18,7 @@ class LocalizedUrlMacroTest extends TestCase
1818 /** @test */
1919 public function it_generates_urls_with_localized_route_keys_for_the_current_route_using_route_model_binding ()
2020 {
21+ $ this ->withoutExceptionHandling ();
2122 $ this ->setSupportedLocales (['en ' , 'nl ' ]);
2223
2324 $ model = (new Model ([
@@ -51,6 +52,7 @@ public function it_generates_urls_with_localized_route_keys_for_the_current_rout
5152 /** @test */
5253 public function you_can_implement_an_interface_and_let_your_model_return_custom_parameters_with_route_model_binding ()
5354 {
55+ $ this ->withoutExceptionHandling ();
5456 $ this ->setSupportedLocales (['en ' , 'nl ' ]);
5557
5658 $ model = (new ModelWithCustomRouteParameters ([
@@ -85,6 +87,7 @@ public function you_can_implement_an_interface_and_let_your_model_return_custom_
8587 /** @test */
8688 public function it_cannot_guess_a_localized_route_key_without_route_model_binding ()
8789 {
90+ $ this ->withoutExceptionHandling ();
8891 $ this ->setSupportedLocales (['en ' , 'nl ' ]);
8992
9093 $ model = (new Model ([
@@ -118,6 +121,7 @@ public function it_cannot_guess_a_localized_route_key_without_route_model_bindin
118121 /** @test */
119122 public function you_can_pass_it_a_model_with_a_localized_route_key_without_route_model_binding ()
120123 {
124+ $ this ->withoutExceptionHandling ();
121125 $ this ->setSupportedLocales (['en ' , 'nl ' ]);
122126
123127 $ model = (new Model ([
@@ -151,6 +155,7 @@ public function you_can_pass_it_a_model_with_a_localized_route_key_without_route
151155 /** @test */
152156 public function you_can_pass_it_a_closure_that_returns_the_parameters_without_route_model_binding ()
153157 {
158+ $ this ->withoutExceptionHandling ();
154159 $ this ->setSupportedLocales (['en ' , 'nl ' ]);
155160
156161 $ model = (new Model ([
@@ -190,6 +195,7 @@ public function you_can_pass_it_a_closure_that_returns_the_parameters_without_ro
190195 /** @test */
191196 public function it_handles_unnamed_non_localized_routes ()
192197 {
198+ $ this ->withoutExceptionHandling ();
193199 $ this ->setSupportedLocales (['en ' , 'nl ' ]);
194200
195201 Route::get ('route/one ' , function () {
@@ -227,6 +233,7 @@ public function it_handles_unnamed_non_localized_routes()
227233 /** @test */
228234 public function it_handles_unnamed_localized_routes ()
229235 {
236+ $ this ->withoutExceptionHandling ();
230237 $ this ->setSupportedLocales (['en ' , 'nl ' ]);
231238
232239 Route::localized (function () {
@@ -266,6 +273,7 @@ public function it_handles_unnamed_localized_routes()
266273 /** @test */
267274 public function it_returns_the_current_url_for_existing_non_localized_routes ()
268275 {
276+ $ this ->withoutExceptionHandling ();
269277 $ this ->setSupportedLocales (['en ' , 'nl ' ]);
270278
271279 Route::get ('non/localized/route ' , function () {
@@ -407,6 +415,7 @@ public function a_fallback_route_is_not_triggered_when_a_registered_route_throws
407415 /** @test */
408416 public function it_returns_a_localized_url_for_a_localized_fallback_route ()
409417 {
418+ $ this ->withoutExceptionHandling ();
410419 $ this ->setSupportedLocales (['en ' , 'nl ' ]);
411420 $ this ->setUseLocaleMiddleware (true );
412421
@@ -432,6 +441,7 @@ public function it_returns_a_localized_url_for_a_localized_fallback_route()
432441 /** @test */
433442 public function it_returns_a_localized_url_for_a_non_localized_fallback_route_if_the_url_contains_a_supported_locale ()
434443 {
444+ $ this ->withoutExceptionHandling ();
435445 $ this ->setSupportedLocales (['en ' , 'nl ' ]);
436446 $ this ->setAppLocale ('en ' );
437447
@@ -455,6 +465,7 @@ public function it_returns_a_localized_url_for_a_non_localized_fallback_route_if
455465 /** @test */
456466 public function it_returns_a_localized_url_for_a_non_localized_fallback_route_if_the_url_does_not_contain_a_supported_locale ()
457467 {
468+ $ this ->withoutExceptionHandling ();
458469 $ this ->setSupportedLocales (['en ' , 'nl ' ]);
459470 $ this ->setAppLocale ('nl ' );
460471
@@ -478,6 +489,7 @@ public function it_returns_a_localized_url_for_a_non_localized_fallback_route_if
478489 /** @test */
479490 public function it_returns_a_localized_url_for_a_non_localized_fallback_route_when_omitting_the_main_locale ()
480491 {
492+ $ this ->withoutExceptionHandling ();
481493 $ this ->setSupportedLocales (['en ' , 'nl ' ]);
482494 $ this ->setOmitUrlPrefixForLocale ('nl ' );
483495 $ this ->setAppLocale ('en ' );
@@ -502,6 +514,7 @@ public function it_returns_a_localized_url_for_a_non_localized_fallback_route_wh
502514 /** @test */
503515 public function it_returns_a_localized_url_for_a_non_localized_fallback_route_when_using_custom_domains ()
504516 {
517+ $ this ->withoutExceptionHandling ();
505518 $ this ->setSupportedLocales ([
506519 'en ' => 'en.domain.test ' ,
507520 'nl ' => 'nl.domain.test ' ,
@@ -528,6 +541,7 @@ public function it_returns_a_localized_url_for_a_non_localized_fallback_route_wh
528541 /** @test */
529542 public function it_generates_non_absolute_urls_for_existing_routes ()
530543 {
544+ $ this ->withoutExceptionHandling ();
531545 $ this ->setSupportedLocales (['en ' , 'nl ' ]);
532546 $ this ->setAppLocale ('en ' );
533547
@@ -568,6 +582,7 @@ public function it_generates_non_absolute_urls_for_non_existing_routes()
568582 /** @test */
569583 public function it_returns_a_url_with_query_string_for_existing_non_localized_unnamed_routes ()
570584 {
585+ $ this ->withoutExceptionHandling ();
571586 $ this ->setSupportedLocales (['en ' , 'nl ' ]);
572587
573588 Route::get ('route ' , function () {
@@ -590,6 +605,7 @@ public function it_returns_a_url_with_query_string_for_existing_non_localized_un
590605 /** @test */
591606 public function it_returns_a_url_with_query_string_for_existing_localized_unnamed_routes ()
592607 {
608+ $ this ->withoutExceptionHandling ();
593609 $ this ->setSupportedLocales (['en ' , 'nl ' ]);
594610 $ this ->setUseLocaleMiddleware (true );
595611 $ this ->setAppLocale ('en ' );
@@ -616,6 +632,7 @@ public function it_returns_a_url_with_query_string_for_existing_localized_unname
616632 /** @test */
617633 public function it_returns_a_url_with_query_string_for_existing_non_localized_named_routes ()
618634 {
635+ $ this ->withoutExceptionHandling ();
619636 $ this ->setSupportedLocales (['en ' , 'nl ' ]);
620637
621638 Route::get ('route ' , function () {
@@ -638,6 +655,7 @@ public function it_returns_a_url_with_query_string_for_existing_non_localized_na
638655 /** @test */
639656 public function it_returns_a_url_with_query_string_for_existing_localized_named_routes ()
640657 {
658+ $ this ->withoutExceptionHandling ();
641659 $ this ->setSupportedLocales (['en ' , 'nl ' ]);
642660 $ this ->setUseLocaleMiddleware (true );
643661 $ this ->setAppLocale ('en ' );
@@ -664,6 +682,7 @@ public function it_returns_a_url_with_query_string_for_existing_localized_named_
664682 /** @test */
665683 public function it_returns_a_url_with_translated_slugs_for_named_routes ()
666684 {
685+ $ this ->withoutExceptionHandling ();
667686 $ this ->setSupportedLocales (['en ' , 'nl ' ]);
668687 $ this ->setUseLocaleMiddleware (true );
669688 $ this ->setAppLocale ('en ' );
0 commit comments