aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/security
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-08-31 13:58:09 +0200
committerArthurHoaro <arthur@hoa.ro>2020-08-31 14:09:27 +0200
commit63b0059ed55dceaa58396b7baeb2b490b57ce9cc (patch)
treeac074a14319e830f17750333fd76006f776f0de0 /tests/security
parentbea062149ebcb4663861edb1cc0a32faf85b273f (diff)
downloadShaarli-63b0059ed55dceaa58396b7baeb2b490b57ce9cc.tar.gz
Shaarli-63b0059ed55dceaa58396b7baeb2b490b57ce9cc.tar.zst
Shaarli-63b0059ed55dceaa58396b7baeb2b490b57ce9cc.zip
Fix broken route to filter not tagged bookmarks
Also display the filter for visitors. Fixes #1529
Diffstat (limited to 'tests/security')
-rw-r--r--tests/security/SessionManagerTest.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/security/SessionManagerTest.php b/tests/security/SessionManagerTest.php
index 60695dcf..11a59f9c 100644
--- a/tests/security/SessionManagerTest.php
+++ b/tests/security/SessionManagerTest.php
@@ -207,15 +207,16 @@ class SessionManagerTest extends TestCase
207 'expires_on' => time() + 1000, 207 'expires_on' => time() + 1000,
208 'username' => 'johndoe', 208 'username' => 'johndoe',
209 'visibility' => 'public', 209 'visibility' => 'public',
210 'untaggedonly' => false, 210 'untaggedonly' => true,
211 ]; 211 ];
212 $this->sessionManager->logout(); 212 $this->sessionManager->logout();
213 213
214 $this->assertFalse(isset($this->session['ip'])); 214 $this->assertArrayNotHasKey('ip', $this->session);
215 $this->assertFalse(isset($this->session['expires_on'])); 215 $this->assertArrayNotHasKey('expires_on', $this->session);
216 $this->assertFalse(isset($this->session['username'])); 216 $this->assertArrayNotHasKey('username', $this->session);
217 $this->assertFalse(isset($this->session['visibility'])); 217 $this->assertArrayNotHasKey('visibility', $this->session);
218 $this->assertFalse(isset($this->session['untaggedonly'])); 218 $this->assertArrayHasKey('untaggedonly', $this->session);
219 $this->assertTrue($this->session['untaggedonly']);
219 } 220 }
220 221
221 /** 222 /**