Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
HavokInspiration committed Sep 30, 2015
1 parent 7f1b25b commit b38c91d
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions tests/TestCase/Command/MarkMigratedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,18 @@ public function testExecuteAll()
'--source' => 'TestsMigrations'
]);

$this->assertContains('Migration `20150826191400` successfully marked migrated !', $this->commandTester->getDisplay());
$this->assertContains('Migration `20150724233100` successfully marked migrated !', $this->commandTester->getDisplay());
$this->assertContains('Migration `20150704160200` successfully marked migrated !', $this->commandTester->getDisplay());
$this->assertContains(
'Migration `20150826191400` successfully marked migrated !',
$this->commandTester->getDisplay()
);
$this->assertContains(
'Migration `20150724233100` successfully marked migrated !',
$this->commandTester->getDisplay()
);
$this->assertContains(
'Migration `20150704160200` successfully marked migrated !',
$this->commandTester->getDisplay()
);

$result = $this->Connection->newQuery()->select(['*'])->from('phinxlog')->execute()->fetchAll('assoc');
$this->assertEquals('20150704160200', $result[0]['version']);
Expand All @@ -165,9 +174,18 @@ public function testExecuteAll()
'--source' => 'TestsMigrations'
]);

$this->assertContains('Skipping migration `20150704160200` (already migrated).', $this->commandTester->getDisplay());
$this->assertContains('Skipping migration `20150724233100` (already migrated).', $this->commandTester->getDisplay());
$this->assertContains('Skipping migration `20150826191400` (already migrated).', $this->commandTester->getDisplay());
$this->assertContains(
'Skipping migration `20150704160200` (already migrated).',
$this->commandTester->getDisplay()
);
$this->assertContains(
'Skipping migration `20150724233100` (already migrated).',
$this->commandTester->getDisplay()
);
$this->assertContains(
'Skipping migration `20150826191400` (already migrated).',
$this->commandTester->getDisplay()
);

$config = $this->command->getConfig();
$env = $this->command->getManager()->getEnvironment('default');
Expand Down

0 comments on commit b38c91d

Please sign in to comment.