fix tests
This commit is contained in:
@@ -188,15 +188,15 @@ class TaskManagerTest extends \PHPUnit_Framework_TestCase
|
|||||||
$this->assertCount(2, $this->taskManager->filterPending());
|
$this->assertCount(2, $this->taskManager->filterPending());
|
||||||
|
|
||||||
$this->taskManager->done($task);
|
$this->taskManager->done($task);
|
||||||
$this->isTrue($task->isCompleted());
|
$this->assertTrue($task->isCompleted());
|
||||||
|
|
||||||
$task3 = clone $task;
|
$task3 = clone $task;
|
||||||
|
|
||||||
$this->isTrue($task3->isPending());
|
$this->assertTrue($task3->isPending());
|
||||||
$this->taskManager->save($task3);
|
$this->taskManager->save($task3);
|
||||||
|
|
||||||
$this->isTrue($task->isCompleted());
|
$this->assertTrue($task->isCompleted());
|
||||||
$this->isTrue($task3->isPending());
|
$this->assertTrue($task3->isPending());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user