Files
Phraseanet/tests/Session/Authentication/Session_Authentication_GuestTest.php
2012-10-04 15:44:49 +02:00

25 lines
565 B
PHP

<?php
require_once __DIR__ . '/../../PhraseanetPHPUnitAbstract.class.inc';
class Session_Authentication_GuestTest extends PhraseanetPHPUnitAbstract
{
/**
* @var Session_Authentication_Guest
*/
protected $object;
public function setUp()
{
parent::setUp();
$this->object = new Session_Authentication_Guest(self::$DI['app']);
}
public function testSignOn()
{
$user = $this->object->signOn();
$this->assertInstanceOf('User_Adapter', $user);
$this->assertTrue($user->is_guest());
}
}