From d0251553146256bfa03ee63d77fcc90582a1289d Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sat, 8 Nov 2008 01:56:59 +0000 Subject: The start of an authentication module. This provides the installation and a basic install test. There is no interface at the moment to do authentication. It is dependent on the install of the user module. --- modules/auth/tests/Auth_Installer_Test.php | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 modules/auth/tests/Auth_Installer_Test.php (limited to 'modules/auth/tests') diff --git a/modules/auth/tests/Auth_Installer_Test.php b/modules/auth/tests/Auth_Installer_Test.php new file mode 100644 index 00000000..110131ab --- /dev/null +++ b/modules/auth/tests/Auth_Installer_Test.php @@ -0,0 +1,36 @@ +find(1); + + $auth = Auth::instance(array('driver' => 'Basic')); + + $auth->set_user_password($user->id, "test_password"); + + $this->assert_false($auth->is_valid_password($user->id, "invalid_password")); + $this->assert_true($auth->is_valid_password($user->id, "test_password")); + } +} -- cgit v1.2.3