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/admin/ConfigureControllerTest.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/admin/ConfigureControllerTest.php')
-rw-r--r-- | tests/front/controller/admin/ConfigureControllerTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/front/controller/admin/ConfigureControllerTest.php b/tests/front/controller/admin/ConfigureControllerTest.php index 40304a18..f2f84bac 100644 --- a/tests/front/controller/admin/ConfigureControllerTest.php +++ b/tests/front/controller/admin/ConfigureControllerTest.php | |||
@@ -142,7 +142,7 @@ class ConfigureControllerTest extends TestCase | |||
142 | 142 | ||
143 | $result = $this->controller->save($request, $response); | 143 | $result = $this->controller->save($request, $response); |
144 | static::assertSame(302, $result->getStatusCode()); | 144 | static::assertSame(302, $result->getStatusCode()); |
145 | static::assertSame(['./configure'], $result->getHeader('Location')); | 145 | static::assertSame(['/subfolder/admin/configure'], $result->getHeader('Location')); |
146 | 146 | ||
147 | static::assertArrayNotHasKey(SessionManager::KEY_WARNING_MESSAGES, $session); | 147 | static::assertArrayNotHasKey(SessionManager::KEY_WARNING_MESSAGES, $session); |
148 | static::assertArrayNotHasKey(SessionManager::KEY_ERROR_MESSAGES, $session); | 148 | static::assertArrayNotHasKey(SessionManager::KEY_ERROR_MESSAGES, $session); |
@@ -193,7 +193,7 @@ class ConfigureControllerTest extends TestCase | |||
193 | $result = $this->controller->save($request, $response); | 193 | $result = $this->controller->save($request, $response); |
194 | 194 | ||
195 | static::assertSame(302, $result->getStatusCode()); | 195 | static::assertSame(302, $result->getStatusCode()); |
196 | static::assertSame(['./configure'], $result->getHeader('Location')); | 196 | static::assertSame(['/subfolder/admin/configure'], $result->getHeader('Location')); |
197 | 197 | ||
198 | static::assertArrayNotHasKey(SessionManager::KEY_ERROR_MESSAGES, $session); | 198 | static::assertArrayNotHasKey(SessionManager::KEY_ERROR_MESSAGES, $session); |
199 | static::assertArrayHasKey(SessionManager::KEY_WARNING_MESSAGES, $session); | 199 | static::assertArrayHasKey(SessionManager::KEY_WARNING_MESSAGES, $session); |
@@ -242,7 +242,7 @@ class ConfigureControllerTest extends TestCase | |||
242 | $result = $this->controller->save($request, $response); | 242 | $result = $this->controller->save($request, $response); |
243 | 243 | ||
244 | static::assertSame(302, $result->getStatusCode()); | 244 | static::assertSame(302, $result->getStatusCode()); |
245 | static::assertSame(['./configure'], $result->getHeader('Location')); | 245 | static::assertSame(['/subfolder/admin/configure'], $result->getHeader('Location')); |
246 | 246 | ||
247 | static::assertArrayNotHasKey(SessionManager::KEY_ERROR_MESSAGES, $session); | 247 | static::assertArrayNotHasKey(SessionManager::KEY_ERROR_MESSAGES, $session); |
248 | static::assertArrayNotHasKey(SessionManager::KEY_WARNING_MESSAGES, $session); | 248 | static::assertArrayNotHasKey(SessionManager::KEY_WARNING_MESSAGES, $session); |