mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-08 18:44:30 +00:00
26 lines
691 B
PHP
26 lines
691 B
PHP
<?php
|
|
|
|
class patch_3803Test extends PhraseanetPHPUnitAbstract
|
|
{
|
|
/**
|
|
* @covers patch_3803::apply
|
|
*/
|
|
public function testApplyInPhraseaEnvironment()
|
|
{
|
|
$patch = new patch_3803();
|
|
|
|
$appbox = $this->getMockBuilder('appbox')
|
|
->disableOriginalConstructor()
|
|
->getMock();
|
|
|
|
$app = self::$DI['app'];
|
|
|
|
$app['phraseanet.configuration'] = $this->getMock('Alchemy\Phrasea\Core\Configuration\ConfigurationInterface');
|
|
$app['phraseanet.configuration']->expects($this->once())
|
|
->method('setDefault')
|
|
->with('main', 'search-engine');
|
|
|
|
$this->assertTrue($patch->apply($appbox, $app));
|
|
}
|
|
}
|