Skip to content

Commit 77f9af7

Browse files
Fix failing test due to removed connection var
1 parent 69242dc commit 77f9af7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tests/AntiMattr/Tests/MongoDB/Migrations/VersionTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class VersionTest extends TestCase
1212
{
1313
private $className;
1414
private $configuration;
15-
private $connections;
1615
private $db;
1716
private $migration;
1817
private $version;
@@ -24,7 +23,6 @@ protected function setUp()
2423
{
2524
$this->className = 'AntiMattr\Tests\MongoDB\Migrations\Version20140908000000';
2625
$this->configuration = $this->createMock('AntiMattr\MongoDB\Migrations\Configuration\Configuration');
27-
$this->connection = $this->createMock('\MongoDB\Client');
2826
$this->db = $this->createMock('\MongoDB\Database');
2927
$this->migration = $this->createMock('AntiMattr\Tests\MongoDB\Migrations\Version20140908000000');
3028
$this->outputWriter = $this->createMock('AntiMattr\MongoDB\Migrations\OutputWriter');
@@ -34,9 +32,6 @@ protected function setUp()
3432
$this->configuration->expects($this->once())
3533
->method('getOutputWriter')
3634
->will($this->returnValue($this->outputWriter));
37-
$this->configuration->expects($this->once())
38-
->method('getConnection')
39-
->will($this->returnValue($this->connection));
4035
$this->configuration->expects($this->once())
4136
->method('getDatabase')
4237
->will($this->returnValue($this->db));

0 commit comments

Comments
 (0)