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