Files
Phraseanet/tests/Session/Authentication/Session_Authentication_GuestTest.php
2012-05-10 17:08:01 +02:00

25 lines
592 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(appbox::get_instance(\bootstrap::getCore()));
}
public function testSignOn()
{
$user = $this->object->signOn();
$this->assertInstanceOf('User_Adapter', $user);
$this->assertTrue($user->is_guest());
}
}