Exemple #1
0
 function testChange_tA_Post_date()
 {
     //merge with Assignmentstest
     $this->testbuildArray();
     $classInstance = new tutor\src\classes\AssignmentsClass();
     $this->assertTrue(isset($classInstance));
     $classInstance->delRowsByStudentId($this->myArray['tA_S_ID']);
     $this->myArray['tA_Post_date'] = 1000;
     $result = $classInstance->insertRecord($this->myArray);
     $this->assertTrue($result === 1);
     $row = $classInstance->getLastDbEntryAsArray($this->myArray['tA_S_ID']);
     $old_tA_Post_date = $this->myArray['tA_Post_date'];
     $this->assertTrue($old_tA_Post_date === 1000);
     // Clean Up
     $classInstance->delRowsByStudentId($this->myArray['tA_S_ID']);
 }