Files
Phraseanet/tests/classes/patch/3803Test.php
Romain Neutron 8ecc97e94e Update unit tests
2013-06-11 11:50:22 +02:00

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));
}
}