summaryrefslogtreecommitdiff
path: root/tests/units/Core/Security/AuthenticationManagerTest.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2019-01-30 22:25:57 -0800
committerFrédéric Guillot <fred@kanboard.net>2019-01-30 22:25:57 -0800
commit928f80d569141601c4d8f6652b2ac0a2497c7be4 (patch)
treee87dcd2712b3b433332f14bb5a2fa84f930dd224 /tests/units/Core/Security/AuthenticationManagerTest.php
parent83deec2e3621c40d15a06e2491f27571d32fe10f (diff)
Update unit tests
Diffstat (limited to 'tests/units/Core/Security/AuthenticationManagerTest.php')
-rw-r--r--tests/units/Core/Security/AuthenticationManagerTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/units/Core/Security/AuthenticationManagerTest.php b/tests/units/Core/Security/AuthenticationManagerTest.php
index a5a23c7e..616b7fa8 100644
--- a/tests/units/Core/Security/AuthenticationManagerTest.php
+++ b/tests/units/Core/Security/AuthenticationManagerTest.php
@@ -56,7 +56,7 @@ class AuthenticationManagerTest extends Base
$authManager = new AuthenticationManager($this->container);
$authManager->register(new DatabaseAuth($this->container));
- $_SESSION['user'] = array('id' => 1, 'username' => 'test');
+ $_SESSION['user'] = array('id' => 1, 'username' => 'test', 'role' => 'app-admin');
$this->assertTrue($this->container['userSession']->isLogged());
$this->assertTrue($authManager->checkCurrentSession());
@@ -67,7 +67,7 @@ class AuthenticationManagerTest extends Base
$authManager = new AuthenticationManager($this->container);
$authManager->register(new DatabaseAuth($this->container));
- $_SESSION['user'] = array('id' => 42, 'username' => 'test');
+ $_SESSION['user'] = array('id' => 42, 'username' => 'test', 'role' => 'app-admin');
$this->assertTrue($this->container['userSession']->isLogged());
$this->assertFalse($authManager->checkCurrentSession());