Commit 21fff942 by Paul Klimov

Mongo full text search test updated.

parent 7cec6856
......@@ -303,11 +303,17 @@ class CollectionTest extends MongoDbTestCase
'status' => 1,
'amount' => 200,
],
[
'name' => 'no search keyword',
'status' => 1,
'amount' => 200,
],
];
$collection->batchInsert($rows);
$collection->createIndex(['name' => 'text']);
$result = $collection->fullTextSearch('some');
$result = $collection->fullTextSearch('customer');
$this->assertNotEmpty($result);
$this->assertCount(2, $result);
}
}
\ No newline at end of file
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