public function testCommand()
 {
     $this->converter->expects($this->once())->method('convert')->with('Document\\MyClass', array('en'), array(), 'none')->will($this->returnValue(false));
     $this->mockSession->expects($this->once())->method('save');
     $this->commandTester->execute(array('classname' => 'Document\\MyClass', '--locales' => array('en'), '--force' => true));
     $this->assertEquals('.' . PHP_EOL . 'done' . PHP_EOL, $this->commandTester->getDisplay());
 }
 /**
  * Converting to translated without specifying locales.
  * @expectedException \Doctrine\ODM\PHPCR\Exception\InvalidArgumentException
  * @expectedExceptionMessage locales must be specified
  */
 public function testMissingLocales()
 {
     $this->converter = new TranslationConverter($this->dm, 1);
     $class = 'Doctrine\\Tests\\Models\\Translation\\Comment';
     $this->converter->convert($class, array());
 }