private PromotionActionController
$promotionActionController;
protected function setUp(): void
{ $packager =
$this->
createMock(LineItemGroupCountPackager::
class);
$packager->
method('getKey'
)->
willReturn('test-packager'
);
$sorter =
$this->
createMock(LineItemGroupPriceAscSorter::
class);
$sorter->
method('getKey'
)->
willReturn('test-sorter'
);
$serviceRegistry =
new LineItemGroupServiceRegistry( [$packager],
[$sorter],
);
$this->promotionActionController =
new PromotionActionController( $serviceRegistry );
} public function testSetGroupPackager(): void
{