Changeset 479 for trunk/tests/AuthSQLTest.php
- Timestamp:
- May 3, 2014 11:09:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/AuthSQLTest.php
r468 r479 38 38 function setUp() 39 39 { 40 40 require dirname(__FILE__) . '/_config.inc.php'; 41 41 require_once '../lib/Auth_SQL.inc.php'; 42 42 $this->Auth_SQL = new Auth_SQL('testauth'); … … 75 75 function tearDown() 76 76 { 77 78 79 77 $db =& DB::getInstance(); 78 79 unset($this->Auth_SQL); 80 80 $db->query("DROP TABLE IF EXISTS test_user_tbl"); 81 81 $db->query("DROP TABLE IF EXISTS test_login_tbl"); … … 163 163 function test_blockaccount() 164 164 { 165 165 $db =& DB::getInstance(); 166 166 167 167 $this->Auth_SQL->login('testuser', 'testpass'); … … 177 177 function test_unblockaccount() 178 178 { 179 179 $db =& DB::getInstance(); 180 180 181 181 $db->query(" … … 239 239 function test_setpassword() 240 240 { 241 241 $db =& DB::getInstance(); 242 242 243 243 $this->Auth_SQL->setParam(array('encryption_type' => Auth_SQL::ENCRYPT_SHA1_HARDENED));
Note: See TracChangeset
for help on using the changeset viewer.