diff options
Diffstat (limited to 'tests/units/TaskFilterTest.php')
-rw-r--r-- | tests/units/TaskFilterTest.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/units/TaskFilterTest.php b/tests/units/TaskFilterTest.php index 504aa5c2..80d5ee4c 100644 --- a/tests/units/TaskFilterTest.php +++ b/tests/units/TaskFilterTest.php @@ -107,6 +107,7 @@ class TaskFilterTest extends Base $this->assertEquals(1, $p->create(array('name' => 'test'))); $this->assertNotFalse($tc->create(array('project_id' => 1, 'title' => 'task1'))); $this->assertNotFalse($tc->create(array('project_id' => 1, 'title' => 'task2'))); + $this->assertNotFalse($tc->create(array('project_id' => 1, 'title' => 'task 43'))); $tf->search('#2'); $tasks = $tf->findAll(); @@ -137,6 +138,12 @@ class TaskFilterTest extends Base $this->assertNotEmpty($tasks); $this->assertCount(1, $tasks); $this->assertEquals('task1', $tasks[0]['title']); + + $tf->search('43'); + $tasks = $tf->findAll(); + $this->assertNotEmpty($tasks); + $this->assertCount(1, $tasks); + $this->assertEquals('task 43', $tasks[0]['title']); } public function testSearchWithReference() |