Files
Phraseanet/tests/Alchemy/Tests/Phrasea/Command/Compile/ConfigurationTest.php
2015-06-15 19:30:51 +02:00

28 lines
803 B
PHP

<?php
namespace Alchemy\Tests\Phrasea\Command\Compile;
use Alchemy\Phrasea\Command\Compile\Configuration;
/**
* @group functional
* @group legacy
*/
class ConfigurationTest extends \PhraseanetTestCase
{
public function testExecute()
{
$command = new Configuration();
$command->setContainer(self::$DI['cli']);
self::$DI['cli']['configuration.store'] = $this->getMock('Alchemy\Phrasea\Core\Configuration\ConfigurationInterface');
self::$DI['cli']['configuration.store']->expects($this->once())
->method('compileAndWrite');
$input = $this->getMock('Symfony\Component\Console\Input\InputInterface');
$output = $this->getMock('Symfony\Component\Console\Output\OutputInterface');
$command->execute($input, $output);
}
}