Changeset 479 for trunk/tests
- Timestamp:
- May 3, 2014 11:09:03 PM (10 years ago)
- Location:
- trunk/tests
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/AppTest.php
r468 r479 94 94 function test_dbquery() 95 95 { 96 96 $db =& DB::getInstance(); 97 97 98 98 $qid = $db->query("SELECT 2 + 2"); -
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)); -
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)); -
trunk/tests/LockTest.php
r468 r479 37 37 38 38 function setUp() 39 { 39 { 40 40 require dirname(__FILE__) . '/_config.inc.php'; 41 41 require_once '../lib/Lock.inc.php'; … … 86 86 function tearDown() 87 87 { 88 89 88 $db =& DB::getInstance(); 89 90 90 unset($this->Lock); 91 91 unset($this->Auth_SQL); -
trunk/tests/VersionTest.php
r468 r479 37 37 38 38 function setUp() 39 { 39 { 40 40 require dirname(__FILE__) . '/_config.inc.php'; 41 41 require_once '../lib/Version.inc.php'; … … 83 83 function tearDown() 84 84 { 85 86 85 $db =& DB::getInstance(); 86 87 87 unset($this->Version); 88 88 unset($this->Auth_SQL);
Note: See TracChangeset
for help on using the changeset viewer.