fix complex filter

This commit is contained in:
DavidBadura
2015-04-22 14:33:35 +00:00
parent 8385e7e7c5
commit 682561a58e
5 changed files with 31 additions and 53 deletions

View File

@@ -711,6 +711,15 @@ class TaskManagerTest extends \PHPUnit_Framework_TestCase
$this->assertNull($task->getEnd());
}
public function testComplexFilter()
{
$task1 = new Task();
$task1->setDescription('foo1');
$this->taskManager->save($task1);
$this->assertCount(1, $this->taskManager->filterAll('(status:pending or status:waiting)'));
}
/**
* @param string $string
* @return \DateTime

View File

@@ -29,7 +29,6 @@ class TaskwarriorTest extends \PHPUnit_Framework_TestCase
$fs->remove(__DIR__ . '/.task');
}
public function testConfig()
{
$config = $this->taskwarrior->config();