aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-09-01 10:12:54 +0200
committerArthurHoaro <arthur@hoa.ro>2020-09-01 10:12:54 +0200
commitaca995e09cf9c210ffe45584fbe50dcedb8bdebb (patch)
treed49ca5c06948d6997f6d4da6de6fa23140a841a8 /tests
parentbea062149ebcb4663861edb1cc0a32faf85b273f (diff)
downloadShaarli-aca995e09cf9c210ffe45584fbe50dcedb8bdebb.tar.gz
Shaarli-aca995e09cf9c210ffe45584fbe50dcedb8bdebb.tar.zst
Shaarli-aca995e09cf9c210ffe45584fbe50dcedb8bdebb.zip
Fix support for legacy route login redirection
Makes sure that the user is properly redirected to the bookmark form after login, even with legacy routes
Diffstat (limited to 'tests')
-rw-r--r--tests/legacy/LegacyControllerTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/legacy/LegacyControllerTest.php b/tests/legacy/LegacyControllerTest.php
index 759a5b2a..460fbb3b 100644
--- a/tests/legacy/LegacyControllerTest.php
+++ b/tests/legacy/LegacyControllerTest.php
@@ -66,11 +66,11 @@ class LegacyControllerTest extends TestCase
66 { 66 {
67 return [ 67 return [
68 ['post', [], '/admin/shaare', true], 68 ['post', [], '/admin/shaare', true],
69 ['post', [], '/login', false], 69 ['post', [], '/login?returnurl=/admin/shaare', false],
70 ['post', ['title' => 'test'], '/admin/shaare?title=test', true], 70 ['post', ['title' => 'test'], '/admin/shaare?title=test', true],
71 ['post', ['title' => 'test'], '/login?title=test', false], 71 ['post', ['title' => 'test'], '/login?returnurl=/admin/shaare?title=test', false],
72 ['addlink', [], '/admin/add-shaare', true], 72 ['addlink', [], '/admin/add-shaare', true],
73 ['addlink', [], '/login', false], 73 ['addlink', [], '/login?returnurl=/admin/add-shaare', false],
74 ['login', [], '/login', true], 74 ['login', [], '/login', true],
75 ['login', [], '/login', false], 75 ['login', [], '/login', false],
76 ['logout', [], '/admin/logout', true], 76 ['logout', [], '/admin/logout', true],