Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
31 | public function testAddAndGetByWeight(): void |
||
32 | { |
||
33 | /** @var PlacesCollector $placeCollector */ |
||
34 | $placeCollector = new PlacesCollector(); |
||
35 | |||
36 | $placeCollector->addBasePlaceTypes(); |
||
37 | |||
38 | $placeCollector->addPlaceType(new CorridorNoForklift()); |
||
39 | |||
40 | $this->assertInstanceOf(CorridorNoForklift::class, $placeCollector->getPlaceTypeByWeight(5)); |
||
41 | } |
||
42 | } |