public function testExecute()
{
$application = $this->getApplication();
$application->add(new InlineAdminCommand());
$application->setAutoExit(false);
$command = $this->getApplication()->find('dev:translate:admin');
$commandTester = new CommandTester($command);
$commandTester->execute(array('command' => $command->getName(), '--on' => true));
$this->assertContains('Inline Translation (Admin) enabled', $commandTester->getDisplay());
$commandTester = new CommandTester($command);
$commandTester->execute(array('command' => $command->getName(), '--off' => true));
$this->assertContains('Inline Translation (Admin) disabled', $commandTester->getDisplay());
}