File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed
tests/AntiMattr/Tests/MongoDB/Migrations Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ class VersionTest extends TestCase
12
12
{
13
13
private $ className ;
14
14
private $ configuration ;
15
- private $ connections ;
16
15
private $ db ;
17
16
private $ migration ;
18
17
private $ version ;
@@ -24,7 +23,6 @@ protected function setUp()
24
23
{
25
24
$ this ->className = 'AntiMattr\Tests\MongoDB\Migrations\Version20140908000000 ' ;
26
25
$ this ->configuration = $ this ->createMock ('AntiMattr\MongoDB\Migrations\Configuration\Configuration ' );
27
- $ this ->connection = $ this ->createMock ('\MongoDB\Client ' );
28
26
$ this ->db = $ this ->createMock ('\MongoDB\Database ' );
29
27
$ this ->migration = $ this ->createMock ('AntiMattr\Tests\MongoDB\Migrations\Version20140908000000 ' );
30
28
$ this ->outputWriter = $ this ->createMock ('AntiMattr\MongoDB\Migrations\OutputWriter ' );
@@ -34,9 +32,6 @@ protected function setUp()
34
32
$ this ->configuration ->expects ($ this ->once ())
35
33
->method ('getOutputWriter ' )
36
34
->will ($ this ->returnValue ($ this ->outputWriter ));
37
- $ this ->configuration ->expects ($ this ->once ())
38
- ->method ('getConnection ' )
39
- ->will ($ this ->returnValue ($ this ->connection ));
40
35
$ this ->configuration ->expects ($ this ->once ())
41
36
->method ('getDatabase ' )
42
37
->will ($ this ->returnValue ($ this ->db ));
You can’t perform that action at this time.
0 commit comments