Fixed the testsuite
This commit is contained in:
parent
1d3fe87215
commit
1b01a074dc
@ -9,15 +9,14 @@ class ConvertDoctrine1SchemaCommandTest extends \Doctrine\Tests\OrmTestCase
|
||||
public function testExecution()
|
||||
{
|
||||
$entityGenerator = $this->getMock('Doctrine\ORM\Tools\EntityGenerator');
|
||||
$metadataExporter = $this->getMock('Doctrine\ORM\Tools\Export\ClassMetadataExporter');
|
||||
$command = new ConvertDoctrine1SchemaCommand();
|
||||
$command->setEntityGenerator($entityGenerator);
|
||||
|
||||
$output = $this->getMock('Symfony\Component\Console\Output\OutputInterface');
|
||||
$output->expects($this->once())
|
||||
->method('write')
|
||||
->with($this->equalTo('No Metadata Classes to process.' . PHP_EOL));
|
||||
->method('writeln')
|
||||
->with($this->equalTo('No Metadata Classes to process.'));
|
||||
|
||||
$command->convertDoctrine1Schema($this->_getTestEntityManager(), array(), sys_get_temp_dir(), 'annotation', 4, null, $output);
|
||||
$command->convertDoctrine1Schema(array(), sys_get_temp_dir(), 'annotation', 4, null, $output);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user