Doctrine\Tests\ODM\PHPCR\Tools\Command\DocumentConvertTranslationCommandTest::testCommand PHP Method

testCommand() public method

public testCommand ( )
    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());
    }
DocumentConvertTranslationCommandTest