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()); + } }