Files
Phraseanet/tests/classes/Session/Authentication/Session_Authentication_GuestTest.php
2013-01-18 17:47:25 +01:00

23 lines
495 B
PHP

<?php
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());
}
}