mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 12:03:14 +00:00
23 lines
495 B
PHP
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());
|
|
}
|
|
}
|