public function test_break_arrangement() { $this->setExpectedException("Exception", "Cannot validate changes to this wheel arrangement: arrangement cannot be empty"); $Arrangement = new WheelArrangement(); $Arrangement->commit(); }
/** * @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); } }