Example #1
0
 /**
  * Test test "normalizePercentTimeTo100Percent()" in Assignments.class.inc
  *
  * A *description*, that can span multiple lines, to go _in-depth_ into the details of this element
  * and to provide some background information or textual references.
  *
  * @return void
  */
 public function testgetOneRowFromDB()
 {
     $this->testbuildArray();
     // reset myArray to origninal values.
     $classInstance = new tutor\src\classes\AssignmentsClass();
     $result = $classInstance->insertRecord($this->myArray);
     $this->assertTrue(isset($classInstance));
     $this->assertTrue(isset($result));
     $row = $classInstance->getOneRowFromDbAsArrayID($this->myArray['tA_S_ID']);
     if (empty($row) !== TRUE) {
         $this->assertTrue($row['tA_S_ID'] === $this->myArray['tA_S_ID']);
     }
     // Clean Up
     $classInstance->delRowsByStudentId($this->myArray['tA_S_ID']);
 }