implements parsing of search pattern

refs #223
tests must be finished
This commit is contained in:
2014-12-29 00:43:33 +01:00
parent 0157e90753
commit f88976916d
2 changed files with 57 additions and 5 deletions

View File

@@ -39,9 +39,14 @@ class SearchProviderTest extends \PHPUnit_Framework_TestCase
public function testDomain()
{
$term = $this->p("@person is not my name");
$terms = $this->p("@person birthdate:2014-01-02 name:(my name) is not my name");
$this->assertEquals('person', $term['_domain']);
$this->assertEquals(array(
'_domain' => 'person',
'birthdate' => '2014-01-02',
'_default' => 'is not my name',
'name' => 'my name'
), $terms);
}
/**