CodeExplorer RecalculationService example
$this->cartRuleLoader
->
expects(static::
once()) ->
method('loadByCart'
) ->
willReturn( new RuleLoaderResult( $cart,
new RuleCollection() ) );
$recalculationService =
new RecalculationService( $entityRepository,
$this->orderConverter,
$this->
createMock(CartService::
class),
$entityRepository,
$entityRepository,
$entityRepository,
$this->
createMock(Processor::
class),
$this->cartRuleLoader,
$this->
createMock(PromotionItemBuilder::
class) );