File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
src/Symfony/Component/Messenger Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,12 @@ private function getDBALConnectionMock()
108
108
$ platform = $ this ->getMockBuilder (AbstractPlatform::class)
109
109
->getMock ();
110
110
$ platform ->method ('getWriteLockSQL ' )->willReturn ('FOR UPDATE ' );
111
+ $ configuration = $ this ->getMockBuilder (\Doctrine \DBAL \Configuration::class)
112
+ ->getMock ();
113
+ $ configuration ->method ('getSchemaAssetsFilter ' )->willReturn (null );
114
+ $ configuration ->method ('setSchemaAssetsFilter ' )->willReturn (null );
111
115
$ driverConnection ->method ('getDatabasePlatform ' )->willReturn ($ platform );
116
+ $ driverConnection ->method ('getConfiguration ' )->willReturn ($ configuration );
112
117
113
118
return $ driverConnection ;
114
119
}
Original file line number Diff line number Diff line change @@ -197,7 +197,10 @@ public function reject(string $id): bool
197
197
198
198
public function setup (): void
199
199
{
200
+ $ assetFilter = $ this ->driverConnection ->getConfiguration ()->getSchemaAssetsFilter ();
201
+ $ this ->driverConnection ->getConfiguration ()->setSchemaAssetsFilter (null );
200
202
$ this ->schemaSynchronizer ->updateSchema ($ this ->getSchema (), true );
203
+ $ this ->driverConnection ->getConfiguration ()->setSchemaAssetsFilter ($ assetFilter );
201
204
}
202
205
203
206
public function getMessageCount (): int
You can’t perform that action at this time.
0 commit comments