Skip to content

Commit

Permalink
#37180 fixed fabbot cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Bennett committed Jun 16, 2020
1 parent 47786e7 commit 4df26a9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Symfony/Component/Lock/Tests/Store/MongoDbStoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,14 @@ public function testUriCollectionStrip(string $uri, array $options, string $driv

public function provideUriCollectionStripArgs()
{
yield ['mongodb://localhost/?collection=lock', [ 'database' => 'test' ], 'mongodb://localhost/'];
yield ['mongodb://localhost/', [ 'database' => 'test', 'collection' => 'lock' ], 'mongodb://localhost/'];
yield ['mongodb://localhost/?collection=lock', ['database' => 'test'], 'mongodb://localhost/'];
yield ['mongodb://localhost/', ['database' => 'test', 'collection' => 'lock'], 'mongodb://localhost/'];
yield ['mongodb://localhost/test?collection=lock', [], 'mongodb://localhost/test'];
yield ['mongodb://localhost/test', [ 'collection' => 'lock' ], 'mongodb://localhost/test'];
yield ['mongodb://localhost/test', ['collection' => 'lock'], 'mongodb://localhost/test'];

yield ['mongodb://localhost/?collection=lock&replicaSet=repl', [ 'database' => 'test' ], 'mongodb://localhost/?replicaSet=repl'];
yield ['mongodb://localhost/?replicaSet=repl', [ 'database' => 'test', 'collection' => 'lock' ], 'mongodb://localhost/?replicaSet=repl'];
yield ['mongodb://localhost/?collection=lock&replicaSet=repl', ['database' => 'test'], 'mongodb://localhost/?replicaSet=repl'];
yield ['mongodb://localhost/?replicaSet=repl', ['database' => 'test', 'collection' => 'lock'], 'mongodb://localhost/?replicaSet=repl'];
yield ['mongodb://localhost/test?collection=lock&replicaSet=repl', [], 'mongodb://localhost/test?replicaSet=repl'];
yield ['mongodb://localhost/test?replicaSet=repl', [ 'collection' => 'lock' ], 'mongodb://localhost/test?replicaSet=repl'];
yield ['mongodb://localhost/test?replicaSet=repl', ['collection' => 'lock'], 'mongodb://localhost/test?replicaSet=repl'];
}
}

0 comments on commit 4df26a9

Please sign in to comment.