From 710f2c7bb046b43ec9878ae795a181101f6d7515 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 5 Sep 2015 23:30:56 -0400 Subject: Improve unit tests --- tests/units/UserSessionTest.php | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 tests/units/UserSessionTest.php (limited to 'tests/units/UserSessionTest.php') diff --git a/tests/units/UserSessionTest.php b/tests/units/UserSessionTest.php deleted file mode 100644 index 6a831183..00000000 --- a/tests/units/UserSessionTest.php +++ /dev/null @@ -1,32 +0,0 @@ -container); - - $this->assertFalse($us->isAdmin()); - - $s['user'] = array(); - $this->assertFalse($us->isAdmin()); - - $s['user'] = array('is_admin' => '1'); - $this->assertFalse($us->isAdmin()); - - $s['user'] = array('is_admin' => false); - $this->assertFalse($us->isAdmin()); - - $s['user'] = array('is_admin' => '2'); - $this->assertFalse($us->isAdmin()); - - $s['user'] = array('is_admin' => true); - $this->assertTrue($us->isAdmin()); - } -} -- cgit v1.2.3