From a84e2e861039cd702058cd997add8ebbd4a78fc9 Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Wed, 14 Dec 2005 12:04:06 +0000 Subject: [PATCH] Hand-usable tests for authentication functions --- tests/authentication/authenticatorForSource.php | 17 +++++++++++++++++ tests/authentication/checkPassword.php | 10 ++++++++++ 2 files changed, 27 insertions(+), 0 deletions(-) create mode 100644 tests/authentication/authenticatorForSource.php create mode 100644 tests/authentication/checkPassword.php diff --git a/tests/authentication/authenticatorForSource.php b/tests/authentication/authenticatorForSource.php new file mode 100644 index 0000000..0baafe2 --- /dev/null +++ b/tests/authentication/authenticatorForSource.php @@ -0,0 +1,17 @@ +getAuthenticationProvider(); +$oRegistry = KTAuthenticationProviderRegistry::getSingleton(); +$oProvider =& $oRegistry->getAuthenticationProvider($sProvider); +$oAuthenticator = $oProvider->getAuthenticator($oSource); +$oUser = User::getByUserName('nbm'); +$foo = $oAuthenticator->checkPassword($oUser, 'asdfa'); +var_dump($foo); + +?> diff --git a/tests/authentication/checkPassword.php b/tests/authentication/checkPassword.php new file mode 100644 index 0000000..1946b4e --- /dev/null +++ b/tests/authentication/checkPassword.php @@ -0,0 +1,10 @@ + -- libgit2 0.21.4