Пример #1
0
 /**
  * Test status setter and getter
  * @return void
  * @author Andraz <*****@*****.**>
  */
 public function testSetGetStatus()
 {
     $status = 'done';
     $task = new Task();
     $task->setStatus($status);
     $this->assertSame($status, $task->getStatus());
 }
Пример #2
0
 /**
  * Test if task is updated
  * @return void
  * @author Andraz <*****@*****.**>
  */
 public function testUpdateTask()
 {
     $task = new Task();
     $task->setStatus('in_progress');
     $task = $this->storage->saveTask($task);
     $task->setStatus('done');
     $this->storage->saveTask($task);
     $actual = $this->storage->getTasks()[0];
     $this->assertEquals('done', $actual->getStatus());
 }