Пример #1
0
 public function setUp()
 {
     $application = new Application($this->getContainer()->get('kernel'));
     $loadFixturesCommand = new LoadDataFixturesDoctrineCommand();
     $loadFixturesCommand->setApplication($application);
     $loadFixturesCommandTester = new CommandTester($loadFixturesCommand);
     $loadFixturesCommandTester->execute([], ['interactive' => false]);
     $this->command = new CreateUserCommand();
     $this->command->setApplication($application);
     $this->tester = new CommandTester($this->command);
 }