/**
  * @param string[] $adjustments
  * @param string[] $expectedResult
  * @dataProvider getItemsDataProvider
  */
 public function testGetItems($adjustments, $expectedResult)
 {
     $collection = new Collection($this->adjustmentPool, $adjustments);
     $result = $collection->getItems();
     $this->assertEmpty(array_diff($expectedResult, array_keys($result)));
 }
Esempio n. 2
0
 /**
  * Get all registered adjustments
  *
  * @return AdjustmentInterface[]
  */
 public function getAdjustments()
 {
     return $this->adjustmentCollection->getItems();
 }