public function test_break_arrangement()
 {
     $this->setExpectedException("Exception", "Cannot validate changes to this wheel arrangement: arrangement cannot be empty");
     $Arrangement = new WheelArrangement();
     $Arrangement->commit();
 }
Exemple #2
0
 /**
  * @depends testAddLocoClass 
  */
 public function testGetClassByWheelArrangement($class_id)
 {
     $Class = LocosFactory::CreateLocoClass($class_id);
     $Arrangement = new WheelArrangement($Class->wheel_arrangement_id);
     foreach ($Arrangement->getClasses() as $row) {
         $this->assertEquals($row['wheel_arrangement']['id'], $Arrangement->id);
     }
 }