public static setApplicationEntityManager ( |
||
$application |
public function testSetApplicationEntityManager() { $kernel = $this->createKernelMock('test'); $application = new Application($kernel); DoctrineCommand::setApplicationEntityManager($application, 'test'); $this->assertTrue($application->getHelperSet()->has('em')); $this->assertTrue($application->getHelperSet()->has('db')); }
protected function execute(InputInterface $input, OutputInterface $output) { DoctrineCommand::setApplicationEntityManager($this->application, $input->getOption('em')); parent::execute($input, $output); }