@@ -45,16 +45,10 @@ public function testCreateTransport()
45
45
$ driverConnection = $ this ->createMock (\Doctrine \DBAL \Connection::class);
46
46
$ schemaManager = $ this ->createMock (AbstractSchemaManager::class);
47
47
$ schemaConfig = $ this ->createMock (SchemaConfig::class);
48
- $ schemaManager ->method ('createSchemaConfig ' )->willReturn ($ schemaConfig );
49
-
50
48
$ platform = $ this ->createMock (AbstractPlatform::class);
51
- $ driver = $ this ->createMock (Driver::class);
52
- $ driver ->expects ($ this ->once ())
53
- ->method ('getDatabasePlatform ' )
54
- ->willReturn ($ platform );
55
-
49
+ $ schemaManager ->method ('createSchemaConfig ' )->willReturn ($ schemaConfig );
56
50
$ driverConnection ->method ('getSchemaManager ' )->willReturn ($ schemaManager );
57
- $ driverConnection ->method ('getDriver ' )->willReturn ($ driver );
51
+ $ driverConnection ->method ('getDatabasePlatform ' )->willReturn ($ platform );
58
52
$ registry = $ this ->createMock (ConnectionRegistry::class);
59
53
60
54
$ registry ->expects ($ this ->once ())
@@ -75,16 +69,10 @@ public function testCreateTransportNotifyWithPostgreSQLPlatform()
75
69
$ driverConnection = $ this ->createMock (\Doctrine \DBAL \Connection::class);
76
70
$ schemaManager = $ this ->createMock (AbstractSchemaManager::class);
77
71
$ schemaConfig = $ this ->createMock (SchemaConfig::class);
78
- $ schemaManager ->method ('createSchemaConfig ' )->willReturn ($ schemaConfig );
79
-
80
72
$ platform = $ this ->createMock (PostgreSQLPlatform::class);
81
- $ driver = $ this ->createMock (Driver::class);
82
- $ driver ->expects ($ this ->once ())
83
- ->method ('getDatabasePlatform ' )
84
- ->willReturn ($ platform );
85
-
73
+ $ schemaManager ->method ('createSchemaConfig ' )->willReturn ($ schemaConfig );
86
74
$ driverConnection ->method ('getSchemaManager ' )->willReturn ($ schemaManager );
87
- $ driverConnection ->method ('getDriver ' )->willReturn ($ driver );
75
+ $ driverConnection ->method ('getDatabasePlatform ' )->willReturn ($ platform );
88
76
$ registry = $ this ->createMock (ConnectionRegistry::class);
89
77
90
78
$ registry ->expects ($ this ->once ())
0 commit comments