File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -71,9 +71,9 @@ public function redirect_to_english_localized_url_if_the_request_has_no_locale_p
7171 ->times (1 )
7272 ->andReturn ('about-us ' );
7373
74- $ this ->request ->shouldReceive ('getRequestUri ' )
74+ $ this ->request ->shouldReceive ('fullUrl ' )
7575 ->times (1 )
76- ->andReturn ('/about-us/company-overview?a=b&c=d ' );
76+ ->andReturn ('http://localhost /about-us/company-overview?a=b&c=d ' );
7777
7878 $ response = $ this ->middleware ->handle ($ this ->request , $ closure );
7979 $ expected = 'http://localhost/en/about-us/company-overview?a=b&c=d ' ;
@@ -98,9 +98,9 @@ public function redirect_to_spanish_localized_url_if_the_request_has_no_locale_p
9898 ->times (1 )
9999 ->andReturn ('about-us ' );
100100
101- $ this ->request ->shouldReceive ('getRequestUri ' )
101+ $ this ->request ->shouldReceive ('fullUrl ' )
102102 ->times (1 )
103- ->andReturn ('/about-us/company-overview?a=b&c=d ' );
103+ ->andReturn ('http://localhost /about-us/company-overview?a=b&c=d ' );
104104
105105 $ response = $ this ->middleware ->handle ($ this ->request , $ closure );
106106 $ expected = 'http://localhost/es/about-us/company-overview?a=b&c=d ' ;
You can’t perform that action at this time.
0 commit comments