Skip to content

Commit 27b178b

Browse files
Fixes broken tests
1 parent 1a0f2eb commit 27b178b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Middleware/NegotiateLanguageTests.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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';

0 commit comments

Comments
 (0)