Ejemplo n.º 1
0
 function testget_Splits()
 {
     // Get number of splits.  Add 3 splits.  Get number of splits again and test for match.
     $result = $this->testbuildArray();
     // reset myArray to origninal values.
     $temp_storage = $this->myArray['tSp_id'];
     $classInstance = new SplitsClass();
     $result = $classInstance->deleteByGroupID(0);
     $result = $classInstance->insertRow($this->myArray);
     // true on success.
     $this->assertTrue($result === 1);
     $result = $classInstance->insertRow($this->myArray);
     // true on success.
     $this->assertTrue($result === 1);
     $result = $classInstance->insertRow($this->myArray);
     // true on success.
     $this->assertTrue($result === 1);
     $result = $classInstance->getAllSplits();
     $this->assertTrue(count($result) === 3);
     $result = $classInstance->deleteSplitLessonName('$this->myArray["tSp_LessonName"]');
     $this->myArray['tSp_id'] = $temp_storage;
 }