/**
  * Test test "normalizePercentTimeTo100Percent()" in Assignments.class.inc.
  */
 public function testgetAssignmentByAssignmentId()
 {
     $this->resetMyArray();
     // Reset myArray to origninal values.
     $ac_class_instance = new AssignmentsClass();
     $ac_class_instance->delRowsByStudentId($this->myArray['tA_S_ID']);
     // Insure no previous lessons for this student.
     $this->myArray['tA_id'] = '88888';
     $this->myArray['tA_StudentName'] = 'John Doe III';
     $result = $ac_class_instance->insertRecord($this->myArray);
     $this->assertTrue($result === 1);
     // Returns array or FALSE.
     $result = $ac_class_instance->getAssignmentByAssignmentID('88888');
     $this->assertTrue(is_array($result) === TRUE);
     if (is_array($result) === TRUE) {
         $this->assertTrue($result['tA_StudentName'] === 'John Doe III');
         $this->assertTrue($result['tA_id'] === '88888');
     }
     $ac_class_instance->delRowsByStudentId($this->myArray['tA_S_ID']);
     $this->resetMyArray();
 }