Browse Source

Unit test for "yii\sphinx\Query" advanced

tags/2.0.0-beta
Klimov Paul 11 years ago
parent
commit
6593c8cea4
  1. 4
      tests/unit/extensions/sphinx/QueryTest.php

4
tests/unit/extensions/sphinx/QueryTest.php

@ -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()

Loading…
Cancel
Save