/** * Test cAssignmentGetNextLesson() * @return void */ public function testcAssignmentGetNextLesson() { /* Tests cAssignment_get_next_lesson.php Does not show up on missing tests because cAssignments is not in assignments.class Function cAssignments_get_next_lesson is called from javascript. */ // Next reset myArray to origninal values. $this->testbuildArray(); // Add a new row to delete. $classInstance = new tutor\src\classes\AssignmentsClass(); $this->assertTrue(isset($classInstance)); $classInstance->delRowsByStudentId($this->myArray['tA_S_ID']); $tempStudent = 'abcdefg'; $this->myArray['tA_S_ID'] = $tempStudent; // Set to a different value. $classInstance->delRowsByStudentId($tempStudent); // Insure no previous lessons for this student. $result = $classInstance->insertRecord($this->myArray); $this->assertTrue($result == 1); $_SESSION['tA_S_ID'] = $tempStudent; $classInstance->delRowsByStudentId('abcdefg'); }