aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-09-01 09:37:01 +0200
committerGitHub <noreply@github.com>2020-09-01 09:37:01 +0200
commit0e60b7f1741c35b68a37e0705521669e1191774e (patch)
tree774bd5331da962cbabf3dbf8137785f10a7b9412 /tests
parent06f05c923ae59e5daa1aaa8d1ad4c50bd9064bb2 (diff)
parent63b0059ed55dceaa58396b7baeb2b490b57ce9cc (diff)
downloadShaarli-0e60b7f1741c35b68a37e0705521669e1191774e.tar.gz
Shaarli-0e60b7f1741c35b68a37e0705521669e1191774e.tar.zst
Shaarli-0e60b7f1741c35b68a37e0705521669e1191774e.zip
Merge pull request #1530 from ArthurHoaro/fix/untagged-only-broken
Fix broken route to filter not tagged bookmarks
Diffstat (limited to 'tests')
-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 /**