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/LoginControllerTest.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/LoginControllerTest.php')
-rw-r--r-- | tests/front/controller/visitor/LoginControllerTest.php | 4 |
1 files changed, 2 insertions, 2 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 |