public function testEditTask()
{
$task = TaskMock::createNew();
$command = 'ActionMock::method()';
$task = TaskManager::editTask($task, '* * * * *', $command, TaskInterface::TASK_STATUS_ACTIVE, 'comment');
$this->assertEquals($command, $task->getCommand());
$command = 'wrong_command';
$task = TaskManager::editTask($task, '* * * * *', $command, TaskInterface::TASK_STATUS_ACTIVE, 'comment');
$this->assertNotEquals($command, $task->getCommand());
}