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