Sokil\Mongo\CursorTest::testReadSecondaryPreferred PHP Method

testReadSecondaryPreferred() public method

public testReadSecondaryPreferred ( array $tags = null )
$tags array
    public function testReadSecondaryPreferred(array $tags = null)
    {
        $qb = $this->collection->find()->readSecondaryPreferred(array(array('dc' => 'kyiv'), array('dc' => 'lviv')));
        $qb->current();
        $this->assertEquals(array('type' => \MongoClient::RP_SECONDARY_PREFERRED, 'tagsets' => array(array('dc' => 'kyiv'), array('dc' => 'lviv'))), $qb->getReadPreference());
    }