diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-06-13 13:08:01 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-07-23 21:19:21 +0200 |
commit | 9c75f877935fa6adec951a4d8d32b328aaab314f (patch) | |
tree | 1cdd09ddfc00c6cebb92bb2b90381a06fd31246d /tests/front/controller/visitor/TagControllerTest.php | |
parent | 818b3193ffabec57501e3bdfa997206e3c0671ef (diff) | |
download | Shaarli-9c75f877935fa6adec951a4d8d32b328aaab314f.tar.gz Shaarli-9c75f877935fa6adec951a4d8d32b328aaab314f.tar.zst Shaarli-9c75f877935fa6adec951a4d8d32b328aaab314f.zip |
Use multi-level routes for existing controllers instead of 1 level everywhere
Also prefix most admin routes with /admin/
Diffstat (limited to 'tests/front/controller/visitor/TagControllerTest.php')
-rw-r--r-- | tests/front/controller/visitor/TagControllerTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
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 | } |