setApplicationEntityManager() public static method

public static setApplicationEntityManager ( Application $application, $emName )
$application Symfony\Bundle\FrameworkBundle\Console\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);
 }