public function setUp()
 {
     parent::setUp();
     $application = new Application();
     $application->add(new UpAllCommand(null, $this->parametersFromYmlFile));
     $this->command = $application->find('up-all');
     $this->commandTester = new CommandTester($this->command);
 }
Ejemplo n.º 2
0
 public function setUp()
 {
     parent::setUp();
     $companies = $this->db->selectCollection('Company');
     $companies->upsert([], ['name' => 'Bob', 'address' => ['streetFirstLine' => 'Lena Gardens']]);
     $migrations = $this->db->selectCollection('MongrateMigrations');
     $migrations->upsert(['className' => 'UpdateAddressStructure'], ['$set' => ['isApplied' => true]]);
 }
 public function setUp()
 {
     parent::setUp();
     $collection = $this->db->selectCollection('Company');
     $collection->upsert([], ['name' => 'Amy', 'address' => [['streetFirstLine' => 'Lena Gardens'], ['streetFirstLine' => 'Marlow Place']]]);
 }
 public function tearDown()
 {
     parent::tearDown();
     $this->deleteTestFiles();
 }