Пример #1
0
 /**
  * Test test "normalizePercentTimeTo100Percent()" in Assignments.class.inc.
  */
 public function testGetOneRowFromDb()
 {
     $this->resetMyArray();
     // Reset myArray to origninal values.
     $ac_class_instance = new AssignmentsClass();
     $result = $ac_class_instance->insertRecord($this->myArray);
     $this->assertTrue(isset($ac_class_instance));
     $this->assertTrue(isset($result));
     $row = $ac_class_instance->getOneRowFromDbAsArrayID($this->myArray['tA_S_ID']);
     if (empty($row) !== TRUE) {
         $this->assertTrue($row['tA_S_ID'] === $this->myArray['tA_S_ID']);
     }
     // Clean Up.
     $ac_class_instance->delRowsByStudentId($this->myArray['tA_S_ID']);
     $this->resetMyArray();
 }