Skip to content

Commit dd28771

Browse files
committed
getFormatter only required with --show-versions
1 parent 81b2168 commit dd28771

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/AntiMattr/Tests/MongoDB/Migrations/Tools/Console/Command/StatusCommandTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ protected function setUp()
2929
$this->outputFormatter = $this->buildMock(
3030
'Symfony\Component\Console\Formatter\OutputFormatterInterface'
3131
);
32-
$this->output
33-
->method('getFormatter')
34-
->will($this->returnValue($this->outputFormatter));
35-
3632
$this->config = $this->buildMock('AntiMattr\MongoDB\Migrations\Configuration\Configuration');
3733
$this->migration = $this->buildMock('AntiMattr\MongoDB\Migrations\AbstractMigration');
3834
$this->version = $this->buildMock('AntiMattr\MongoDB\Migrations\Version');
@@ -257,6 +253,10 @@ public function testExecuteWithShowingVersions()
257253
$unavailableMigratedVersion = '20140822185744';
258254

259255
// Expectations
256+
$this->output
257+
->method('getFormatter')
258+
->will($this->returnValue($this->outputFormatter));
259+
260260
$this->version->expects($this->exactly(2))
261261
->method('getVersion')
262262
->will($this->returnValue($notMigratedVersion));

0 commit comments

Comments
 (0)