Changeset 149 for trunk/tests
- Timestamp:
- Jun 5, 2006 2:34:47 AM (18 years ago)
- Location:
- trunk/tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/Auth_FileTest.php
r136 r149 48 48 } 49 49 50 function test_clear auth()50 function test_clear() 51 51 { 52 52 $result = $this->Auth_File->login('testuser', 'testpass'); 53 $this->Auth_File->clear auth();53 $this->Auth_File->clear(); 54 54 $this->assertFalse($_SESSION[$this->Auth_File->_ns]['authenticated'], 'testuser authentication not false in session.'); 55 55 } … … 61 61 $this->assertTrue($true, 'testuser not logged in but should be.'); 62 62 63 $this->Auth_File->clear auth();63 $this->Auth_File->clear(); 64 64 $false = $this->Auth_File->isloggedin(); 65 65 $this->assertFalse($false, 'testuser is logged in but shouldn\'t be.'); -
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.'); -
trunk/tests/PrefsTest.php
r42 r149 48 48 } 49 49 50 function test_get value()50 function test_getue() 51 51 { 52 $result = $this->Prefs->get value(PARAM);52 $result = $this->Prefs->getue(PARAM); 53 53 $expected = EXPECTED_VAL; 54 54 $this->assertEquals($expected, $result);
Note: See TracChangeset
for help on using the changeset viewer.