aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/front/controller/admin/ManageTagControllerTest.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-06-13 13:08:01 +0200
committerArthurHoaro <arthur@hoa.ro>2020-07-23 21:19:21 +0200
commit9c75f877935fa6adec951a4d8d32b328aaab314f (patch)
tree1cdd09ddfc00c6cebb92bb2b90381a06fd31246d /tests/front/controller/admin/ManageTagControllerTest.php
parent818b3193ffabec57501e3bdfa997206e3c0671ef (diff)
downloadShaarli-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/admin/ManageTagControllerTest.php')
-rw-r--r--tests/front/controller/admin/ManageTagControllerTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/front/controller/admin/ManageTagControllerTest.php b/tests/front/controller/admin/ManageTagControllerTest.php
index eed99231..09ba0b4b 100644
--- a/tests/front/controller/admin/ManageTagControllerTest.php
+++ b/tests/front/controller/admin/ManageTagControllerTest.php
@@ -93,7 +93,7 @@ class ManageTagControllerTest extends TestCase
93 $result = $this->controller->save($request, $response); 93 $result = $this->controller->save($request, $response);
94 94
95 static::assertSame(302, $result->getStatusCode()); 95 static::assertSame(302, $result->getStatusCode());
96 static::assertSame(['./?searchtags=new-tag'], $result->getHeader('location')); 96 static::assertSame(['/subfolder/?searchtags=new-tag'], $result->getHeader('location'));
97 97
98 static::assertArrayNotHasKey(SessionManager::KEY_ERROR_MESSAGES, $session); 98 static::assertArrayNotHasKey(SessionManager::KEY_ERROR_MESSAGES, $session);
99 static::assertArrayNotHasKey(SessionManager::KEY_WARNING_MESSAGES, $session); 99 static::assertArrayNotHasKey(SessionManager::KEY_WARNING_MESSAGES, $session);
@@ -146,7 +146,7 @@ class ManageTagControllerTest extends TestCase
146 $result = $this->controller->save($request, $response); 146 $result = $this->controller->save($request, $response);
147 147
148 static::assertSame(302, $result->getStatusCode()); 148 static::assertSame(302, $result->getStatusCode());
149 static::assertSame(['./manage-tags'], $result->getHeader('location')); 149 static::assertSame(['/subfolder/admin/tags'], $result->getHeader('location'));
150 150
151 static::assertArrayNotHasKey(SessionManager::KEY_ERROR_MESSAGES, $session); 151 static::assertArrayNotHasKey(SessionManager::KEY_ERROR_MESSAGES, $session);
152 static::assertArrayNotHasKey(SessionManager::KEY_WARNING_MESSAGES, $session); 152 static::assertArrayNotHasKey(SessionManager::KEY_WARNING_MESSAGES, $session);
@@ -197,7 +197,7 @@ class ManageTagControllerTest extends TestCase
197 $result = $this->controller->save($request, $response); 197 $result = $this->controller->save($request, $response);
198 198
199 static::assertSame(302, $result->getStatusCode()); 199 static::assertSame(302, $result->getStatusCode());
200 static::assertSame(['./manage-tags'], $result->getHeader('location')); 200 static::assertSame(['/subfolder/admin/tags'], $result->getHeader('location'));
201 201
202 static::assertArrayNotHasKey(SessionManager::KEY_ERROR_MESSAGES, $session); 202 static::assertArrayNotHasKey(SessionManager::KEY_ERROR_MESSAGES, $session);
203 static::assertArrayHasKey(SessionManager::KEY_WARNING_MESSAGES, $session); 203 static::assertArrayHasKey(SessionManager::KEY_WARNING_MESSAGES, $session);
@@ -229,7 +229,7 @@ class ManageTagControllerTest extends TestCase
229 $result = $this->controller->save($request, $response); 229 $result = $this->controller->save($request, $response);
230 230
231 static::assertSame(302, $result->getStatusCode()); 231 static::assertSame(302, $result->getStatusCode());
232 static::assertSame(['./manage-tags'], $result->getHeader('location')); 232 static::assertSame(['/subfolder/admin/tags'], $result->getHeader('location'));
233 233
234 static::assertArrayNotHasKey(SessionManager::KEY_ERROR_MESSAGES, $session); 234 static::assertArrayNotHasKey(SessionManager::KEY_ERROR_MESSAGES, $session);
235 static::assertArrayHasKey(SessionManager::KEY_WARNING_MESSAGES, $session); 235 static::assertArrayHasKey(SessionManager::KEY_WARNING_MESSAGES, $session);
@@ -262,7 +262,7 @@ class ManageTagControllerTest extends TestCase
262 $result = $this->controller->save($request, $response); 262 $result = $this->controller->save($request, $response);
263 263
264 static::assertSame(302, $result->getStatusCode()); 264 static::assertSame(302, $result->getStatusCode());
265 static::assertSame(['./manage-tags'], $result->getHeader('location')); 265 static::assertSame(['/subfolder/admin/tags'], $result->getHeader('location'));
266 266
267 static::assertArrayNotHasKey(SessionManager::KEY_ERROR_MESSAGES, $session); 267 static::assertArrayNotHasKey(SessionManager::KEY_ERROR_MESSAGES, $session);
268 static::assertArrayHasKey(SessionManager::KEY_WARNING_MESSAGES, $session); 268 static::assertArrayHasKey(SessionManager::KEY_WARNING_MESSAGES, $session);