summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/app/Http/RequestHandlers/RedirectBranchesPhpTest.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/app/Http/RequestHandlers/RedirectBranchesPhpTest.php b/tests/app/Http/RequestHandlers/RedirectBranchesPhpTest.php
index de084eaa6e..31fbb32e1b 100644
--- a/tests/app/Http/RequestHandlers/RedirectBranchesPhpTest.php
+++ b/tests/app/Http/RequestHandlers/RedirectBranchesPhpTest.php
@@ -50,6 +50,10 @@ class RedirectBranchesPhpTest extends TestCase
->willReturn(new Collection(['tree1' => $tree]));
$module = $this->createMock(BranchesListModule::class);
+ $module
+ ->expects($this->once())
+ ->method('listUrl')
+ ->willReturn('https://www.example.com');
$module_service = $this->createMock(ModuleService::class);
$module_service
@@ -72,7 +76,7 @@ class RedirectBranchesPhpTest extends TestCase
self::assertSame(StatusCodeInterface::STATUS_MOVED_PERMANENTLY, $response->getStatusCode());
self::assertSame(
- 'https://www.example.com/index.php?route=%2F%2FPage%2Ftree1&soundex_dm=&soundex_std=&surname=XYZ',
+ 'https://www.example.com',
$response->getHeaderLine('Location')
);
}