Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | function it_maps_to_unique_codes( |
||
35 | ProductInterface $product, |
||
36 | Collection $collection, |
||
37 | TaxonInterface $taxon |
||
38 | ): void { |
||
39 | $taxon->getCode()->willReturn('book'); |
||
40 | |||
41 | $taxons = new \ArrayIterator([$taxon]); |
||
42 | |||
43 | $collection->getIterator()->willReturn($taxons); |
||
44 | |||
45 | $product->getTaxons()->willReturn($collection); |
||
46 | |||
47 | $this->mapToUniqueCodes($product); |
||
48 | } |
||
50 |