Commit b43b9543 authored by Jeremy Mikola's avatar Jeremy Mikola

Revise name of Collection::withOptions() tests

parent 5f71c1be
...@@ -127,7 +127,7 @@ class CollectionFunctionalTest extends FunctionalTestCase ...@@ -127,7 +127,7 @@ class CollectionFunctionalTest extends FunctionalTestCase
$this->assertSameDocument($expected, $this->collection->findOne($filter, $options)); $this->assertSameDocument($expected, $this->collection->findOne($filter, $options));
} }
public function testWithOptionsInheritsReadPreferenceAndWriteConcern() public function testWithOptionsInheritsOptions()
{ {
$collectionOptions = [ $collectionOptions = [
'readConcern' => new ReadConcern(ReadConcern::LOCAL), 'readConcern' => new ReadConcern(ReadConcern::LOCAL),
...@@ -150,7 +150,7 @@ class CollectionFunctionalTest extends FunctionalTestCase ...@@ -150,7 +150,7 @@ class CollectionFunctionalTest extends FunctionalTestCase
$this->assertSame(WriteConcern::MAJORITY, $debug['writeConcern']->getW()); $this->assertSame(WriteConcern::MAJORITY, $debug['writeConcern']->getW());
} }
public function testWithOptionsPassesReadPreferenceAndWriteConcern() public function testWithOptionsPassesOptions()
{ {
$collectionOptions = [ $collectionOptions = [
'readConcern' => new ReadConcern(ReadConcern::LOCAL), 'readConcern' => new ReadConcern(ReadConcern::LOCAL),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment