Files
Phraseanet/lib/unitTest/Session/Authentication/Session_Authentication_GuestTest.php
2012-01-11 20:04:47 +01:00

49 lines
979 B
PHP

<?php
require_once __DIR__ . '/../../PhraseanetPHPUnitAbstract.class.inc';
/**
* Test class for Session_Authentication_Guest.
* Generated by PHPUnit on 2011-08-02 at 15:48:08.
*/
class Session_Authentication_GuestTest extends PhraseanetPHPUnitAbstract
{
/**
* @var Session_Authentication_Guest
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
public function setUp()
{
$this->object = new Session_Authentication_Guest(appbox::get_instance());
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
public function tearDown()
{
}
/**
* @todo Implement testSignOn().
*/
public function testSignOn()
{
$user = $this->object->signOn();
$this->assertInstanceOf('User_Adapter', $user);
$this->assertTrue($user->is_guest());
}
}
?>