Changeset 149 for trunk/tests/Auth_SQLTest.php
- Timestamp:
- Jun 5, 2006 2:34:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/Auth_SQLTest.php
r136 r149 67 67 } 68 68 69 function test_set val()70 { 71 $this->Auth_SQL->set val('testuserkey', 'testuserval');69 function test_set() 70 { 71 $this->Auth_SQL->set('testuserkey', 'testuserval'); 72 72 $this->assertEquals('testuserval', $_SESSION[$this->Auth_SQL->_ns]['user_data']['testuserkey']); 73 73 } 74 74 75 function test_get val()75 function test_get() 76 76 { 77 77 $_SESSION[$this->Auth_SQL->_ns]['user_data']['testuserkey'] = 'testuserval'; 78 $val = $this->Auth_SQL->get Val('testuserkey');78 $val = $this->Auth_SQL->get('testuserkey'); 79 79 $this->assertEquals('testuserval', $val); 80 80 } … … 95 95 } 96 96 97 function test_clear auth()97 function test_clear() 98 98 { 99 99 $login = $this->Auth_SQL->login('testuser', 'testpass'); … … 101 101 $before_logged_in = $this->Auth_SQL->isloggedin(); 102 102 $this->assertTrue($before_logged_in, 'User is not logged in, but should be.'); 103 $this->Auth_SQL->clear auth();103 $this->Auth_SQL->clear(); 104 104 $after_logged_in = $this->Auth_SQL->isloggedin(); 105 105 $this->assertFalse($after_logged_in, 'User is still logged in but should not be.'); … … 123 123 $before_logged_in = $this->Auth_SQL->isloggedin(); 124 124 $this->assertTrue($before_logged_in, '2. User is not logged in, but should be.'); 125 $this->Auth_SQL->clear auth();125 $this->Auth_SQL->clear(); 126 126 $after_logged_in = $this->Auth_SQL->isloggedin(); 127 127 $this->assertFalse($after_logged_in, '3. User is still logged in but should not be.'); … … 132 132 $before_logged_in2 = $this->Auth_SQL->isloggedin(); 133 133 $this->assertFalse($before_logged_in2, '5. User is logged in, but should not be.'); 134 $this->Auth_SQL->clear auth();134 $this->Auth_SQL->clear(); 135 135 $after_logged_in2 = $this->Auth_SQL->isloggedin(); 136 136 $this->assertFalse($after_logged_in2, '6. Wrong user is still logged in but should not be.');
Note: See TracChangeset
for help on using the changeset viewer.