mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 05:23:21 +00:00
32 lines
762 B
PHP
32 lines
762 B
PHP
<?php
|
|
|
|
require_once __DIR__ . '/../../../../PhraseanetPHPUnitAbstract.class.inc';
|
|
|
|
class ServiceAbstractTest extends PhraseanetPHPUnitAbstract
|
|
{
|
|
/**
|
|
*
|
|
* @var \Alchemy\Phrasea\Core\Service\ServiceAbstract
|
|
*/
|
|
protected $object;
|
|
|
|
public function setUp()
|
|
{
|
|
parent::setUp();
|
|
|
|
$this->object = $this->getMockForAbstractClass(
|
|
"\Alchemy\Phrasea\Core\Service\ServiceAbstract"
|
|
, array(
|
|
self::$DI['app']
|
|
, array('option' => 'my_options')
|
|
)
|
|
);
|
|
}
|
|
|
|
public function testGetOptions()
|
|
{
|
|
$this->assertTrue(is_array($this->object->getOptions()));
|
|
$this->assertEquals(array('option' => 'my_options'), $this->object->getOptions());
|
|
}
|
|
}
|