diff options
Diffstat (limited to 'tests/front/controller/visitor')
-rw-r--r-- | tests/front/controller/visitor/LoginControllerTest.php | 4 | ||||
-rw-r--r-- | tests/front/controller/visitor/TagControllerTest.php | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/front/controller/visitor/LoginControllerTest.php b/tests/front/controller/visitor/LoginControllerTest.php index faa8ac71..e57f44b9 100644 --- a/tests/front/controller/visitor/LoginControllerTest.php +++ b/tests/front/controller/visitor/LoginControllerTest.php | |||
@@ -95,7 +95,7 @@ class LoginControllerTest extends TestCase | |||
95 | 95 | ||
96 | static::assertInstanceOf(Response::class, $result); | 96 | static::assertInstanceOf(Response::class, $result); |
97 | static::assertSame(302, $result->getStatusCode()); | 97 | static::assertSame(302, $result->getStatusCode()); |
98 | static::assertSame(['./'], $result->getHeader('Location')); | 98 | static::assertSame(['/subfolder/'], $result->getHeader('Location')); |
99 | } | 99 | } |
100 | 100 | ||
101 | public function testLoginControllerOpenShaarli(): void | 101 | public function testLoginControllerOpenShaarli(): void |
@@ -116,7 +116,7 @@ class LoginControllerTest extends TestCase | |||
116 | 116 | ||
117 | static::assertInstanceOf(Response::class, $result); | 117 | static::assertInstanceOf(Response::class, $result); |
118 | static::assertSame(302, $result->getStatusCode()); | 118 | static::assertSame(302, $result->getStatusCode()); |
119 | static::assertSame(['./'], $result->getHeader('Location')); | 119 | static::assertSame(['/subfolder/'], $result->getHeader('Location')); |
120 | } | 120 | } |
121 | 121 | ||
122 | public function testLoginControllerWhileBanned(): void | 122 | public function testLoginControllerWhileBanned(): void |
diff --git a/tests/front/controller/visitor/TagControllerTest.php b/tests/front/controller/visitor/TagControllerTest.php index 1242a2e9..43076086 100644 --- a/tests/front/controller/visitor/TagControllerTest.php +++ b/tests/front/controller/visitor/TagControllerTest.php | |||
@@ -64,7 +64,7 @@ class TagControllerTest extends TestCase | |||
64 | 64 | ||
65 | static::assertInstanceOf(Response::class, $result); | 65 | static::assertInstanceOf(Response::class, $result); |
66 | static::assertSame(302, $result->getStatusCode()); | 66 | static::assertSame(302, $result->getStatusCode()); |
67 | static::assertSame(['./?searchtags=abc'], $result->getHeader('location')); | 67 | static::assertSame(['/subfolder/?searchtags=abc'], $result->getHeader('location')); |
68 | } | 68 | } |
69 | 69 | ||
70 | public function testAddTagRemoveLegacyQueryParam(): void | 70 | public function testAddTagRemoveLegacyQueryParam(): void |
@@ -138,7 +138,7 @@ class TagControllerTest extends TestCase | |||
138 | 138 | ||
139 | static::assertInstanceOf(Response::class, $result); | 139 | static::assertInstanceOf(Response::class, $result); |
140 | static::assertSame(302, $result->getStatusCode()); | 140 | static::assertSame(302, $result->getStatusCode()); |
141 | static::assertSame(['./'], $result->getHeader('location')); | 141 | static::assertSame(['/subfolder/'], $result->getHeader('location')); |
142 | } | 142 | } |
143 | 143 | ||
144 | public function testRemoveTagWithoutMatchingTag(): void | 144 | public function testRemoveTagWithoutMatchingTag(): void |
@@ -184,7 +184,7 @@ class TagControllerTest extends TestCase | |||
184 | 184 | ||
185 | static::assertInstanceOf(Response::class, $result); | 185 | static::assertInstanceOf(Response::class, $result); |
186 | static::assertSame(302, $result->getStatusCode()); | 186 | static::assertSame(302, $result->getStatusCode()); |
187 | static::assertSame(['./'], $result->getHeader('location')); | 187 | static::assertSame(['/subfolder/'], $result->getHeader('location')); |
188 | } | 188 | } |
189 | 189 | ||
190 | public function testRemoveTagWithoutTag(): void | 190 | public function testRemoveTagWithoutTag(): void |
@@ -210,6 +210,6 @@ class TagControllerTest extends TestCase | |||
210 | 210 | ||
211 | static::assertInstanceOf(Response::class, $result); | 211 | static::assertInstanceOf(Response::class, $result); |
212 | static::assertSame(302, $result->getStatusCode()); | 212 | static::assertSame(302, $result->getStatusCode()); |
213 | static::assertSame(['./'], $result->getHeader('location')); | 213 | static::assertSame(['/subfolder/'], $result->getHeader('location')); |
214 | } | 214 | } |
215 | } | 215 | } |