mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-09 02:54:26 +00:00
26 lines
670 B
PHP
26 lines
670 B
PHP
<?php
|
|
|
|
class patch_3804Test extends PhraseanetPHPUnitAbstract
|
|
{
|
|
/**
|
|
* @covers patch_3804::apply
|
|
*/
|
|
public function testApply()
|
|
{
|
|
$app = self::$DI['app'];
|
|
|
|
$patch = new patch_3804();
|
|
|
|
$appbox = $this->getMockBuilder('appbox')
|
|
->disableOriginalConstructor()
|
|
->getMock();
|
|
|
|
$app['phraseanet.configuration'] = $this->getMock('Alchemy\Phrasea\Core\Configuration\ConfigurationInterface');
|
|
$app['phraseanet.configuration']->expects($this->once())
|
|
->method('setDefault')
|
|
->with('main', 'task-manager');
|
|
|
|
$this->assertTrue($patch->apply($appbox, $app));
|
|
}
|
|
}
|