X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests%2Ffront%2Fcontroller%2Fvisitor%2FPublicSessionFilterControllerTest.php;h=b45fbe53ab5d15b536f3ea4a62f6d11ccebdaa44;hb=refs%2Fpull%2F1560%2Fhead;hp=0635275089cb7661dfde3abf8073d6682788ad41;hpb=5baafe5001ef2fbe88d3fcdcc225ec12edd3fef1;p=github%2Fshaarli%2FShaarli.git diff --git a/tests/front/controller/visitor/PublicSessionFilterControllerTest.php b/tests/front/controller/visitor/PublicSessionFilterControllerTest.php index 06352750..b45fbe53 100644 --- a/tests/front/controller/visitor/PublicSessionFilterControllerTest.php +++ b/tests/front/controller/visitor/PublicSessionFilterControllerTest.php @@ -28,7 +28,7 @@ class PublicSessionFilterControllerTest extends TestCase */ public function testLinksPerPage(): void { - $this->container->environment = ['HTTP_REFERER' => 'http://shaarli/subfolder/controller/?searchtag=abc']; + $this->container->environment['HTTP_REFERER'] = 'http://shaarli/subfolder/controller/?searchtag=abc'; $request = $this->createMock(Request::class); $request->method('getParam')->with('nb')->willReturn('8'); @@ -74,7 +74,7 @@ class PublicSessionFilterControllerTest extends TestCase */ public function testUntaggedOnly(): void { - $this->container->environment = ['HTTP_REFERER' => 'http://shaarli/subfolder/controller/?searchtag=abc']; + $this->container->environment['HTTP_REFERER'] = 'http://shaarli/subfolder/controller/?searchtag=abc'; $request = $this->createMock(Request::class); $response = new Response(); @@ -97,7 +97,7 @@ class PublicSessionFilterControllerTest extends TestCase */ public function testUntaggedOnlyToggleOff(): void { - $this->container->environment = ['HTTP_REFERER' => 'http://shaarli/subfolder/controller/?searchtag=abc']; + $this->container->environment['HTTP_REFERER'] = 'http://shaarli/subfolder/controller/?searchtag=abc'; $request = $this->createMock(Request::class); $response = new Response();