Changeset 479 for trunk/tests/Auth_SQLTest.php
- Timestamp:
- May 3, 2014 11:09:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/Auth_SQLTest.php
r468 r479 42 42 function setUp() 43 43 { 44 44 require dirname(__FILE__) . '/_config.inc.php'; 45 45 require_once '../lib/Auth_SQL.inc.php'; 46 46 $this->Auth_SQL =& new Auth_SQL('testauth'); … … 79 79 function tearDown() 80 80 { 81 82 83 81 $db =& DB::getInstance(); 82 83 unset($this->Auth_SQL); 84 84 $db->query("DROP TABLE IF EXISTS test_user_tbl"); 85 85 $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.