Exemplo n.º 1
0
 public function Test_of_decrementPositionsOnHigherItems()
 {
     $TodoItems = new TodoItem();
     $TodoItems->transactionStart();
     $this->assertTrue($TodoItems->list->decrementPositionsOnHigherItems(10));
     $todo_list = $this->_getTodoList();
     $this->assertEqual($todo_list[0], 'Email Hilario with new product specs');
     $this->assertEqual($todo_list[9], 'Task number 10');
     $TodoItems->transactionFail();
     $TodoItems->transactionComplete();
 }