Commit 6593c8ce by Klimov Paul

Unit test for "yii\sphinx\Query" advanced

parent 9459b440
......@@ -38,6 +38,10 @@ class QueryTest extends SphinxTestCase
$match = 'test match';
$query->match($match);
$this->assertEquals($match, $query->match);
$command = $query->createCommand($this->getConnection(false));
$this->assertContains('MATCH(', $command->getSql(), 'No MATCH operator present!');
$this->assertContains($match, $command->params, 'No match query among params!');
}
public function testWhere()
......
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