From 53392d4b9e5d1b09e95f560ad0d6758b3c537a4a Mon Sep 17 00:00:00 2001 From: REJack Date: Thu, 6 Dec 2018 17:21:10 +0100 Subject: [PATCH] updated phpunit.xml, tests/Aauth/Libraries/AauthTest.php & tests/Aauth/Libraries/Aauth/ErrorsTest.php --- phpunit.xml | 13 +++---------- tests/Aauth/Libraries/Aauth/ErrorsTest.php | 2 +- tests/Aauth/Libraries/AauthTest.php | 9 +++++++++ 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/phpunit.xml b/phpunit.xml index 4ab85de..aeddaaa 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -21,16 +21,9 @@ - ./application - - ./application/Controllers - ./application/Config - ./application/Database - ./application/Filters - ./application/Helpers - ./application/Language - ./application/Views - + ./application/Libraries + ./application/Models + ./application/Config/Aauth.php diff --git a/tests/Aauth/Libraries/Aauth/ErrorsTest.php b/tests/Aauth/Libraries/Aauth/ErrorsTest.php index 3732691..3bc45a0 100644 --- a/tests/Aauth/Libraries/Aauth/ErrorsTest.php +++ b/tests/Aauth/Libraries/Aauth/ErrorsTest.php @@ -66,7 +66,7 @@ class ErrorsTest extends \CIUnitTestCase { $session = $this->getInstance(); $this->library = new Aauth(NULL, $session); - $this->assertCount(0, $this->library->errors); + $this->assertCount(0, $this->session->errors); $this->library->error('test message 1', true); $this->assertCount(1, $this->session->errors); } diff --git a/tests/Aauth/Libraries/AauthTest.php b/tests/Aauth/Libraries/AauthTest.php index 6d6d33b..781a452 100644 --- a/tests/Aauth/Libraries/AauthTest.php +++ b/tests/Aauth/Libraries/AauthTest.php @@ -52,4 +52,13 @@ class AauthTest extends \CIUnitTestCase } //-------------------------------------------------------------------- + + public function testIsLoggedIn() + { + $session = $this->getInstance(); + + $this->library = new Aauth(NULL, $session); + + $this->assertFalse($this->library->isLoggedIn()); + } }