Ignore:
Timestamp:
Jun 5, 2006 2:34:47 AM (18 years ago)
Author:
scdev
Message:

Q - while we're changing interfaces I'm going to change ->clearAuth() to ->clear().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/Auth_FileTest.php

    r136 r149  
    4848    }
    4949
    50     function test_clearauth()
     50    function test_clear()
    5151    {
    5252        $result = $this->Auth_File->login('testuser', 'testpass');
    53         $this->Auth_File->clearauth();
     53        $this->Auth_File->clear();
    5454        $this->assertFalse($_SESSION[$this->Auth_File->_ns]['authenticated'], 'testuser authentication not false in session.');
    5555    }
     
    6161        $this->assertTrue($true, 'testuser not logged in but should be.');
    6262
    63         $this->Auth_File->clearauth();
     63        $this->Auth_File->clear();
    6464        $false = $this->Auth_File->isloggedin();
    6565        $this->assertFalse($false, 'testuser is logged in but shouldn\'t be.');
Note: See TracChangeset for help on using the changeset viewer.