Example #1
0
 /**
  * End testgetCurrentStudentAssignmentsInAnArray().
  */
 public function testChangeTaPostDate()
 {
     // Merge with Assignmentstest.
     $this->resetMyArray();
     $ac_class_instance = new AssignmentsClass();
     $this->assertTrue(isset($ac_class_instance));
     $ac_class_instance->delRowsByStudentId($this->myArray['tA_S_ID']);
     $this->myArray['tA_Post_date'] = 1000;
     $result = $ac_class_instance->insertRecord($this->myArray);
     $this->assertTrue($result === 1);
     $row = $ac_class_instance->getLastDbEntryAsArray($this->myArray['tA_S_ID']);
     $old_ta_post_date = $this->myArray['tA_Post_date'];
     $this->assertTrue($old_ta_post_date === 1000);
     // Clean Up.
     $ac_class_instance->delRowsByStudentId($this->myArray['tA_S_ID']);
     $this->resetMyArray();
 }