TaxProviderDefinition::ENTITY_NAME,
1,
$collection,
null,
new Criteria(),
Context::
createDefaultContext() );
$repo =
static::
createMock(EntityRepository::
class);
$repo->
method('search'
)->
willReturn($result);
$e =
new TaxProviderExceptions();
$e->
add(TestGenericExceptionTaxProvider::
class,
new \
Exception('Test exception'
));
$logger =
static::
createMock(LoggerInterface::
class);
$logger ->
expects(static::
once()) ->
method('error'
) ->
with('There were 1 errors while fetching taxes from providers: ' . \PHP_EOL . 'Tax provider \'Shopware\\Tests\\Unit\\Core\\Checkout\\Cart\\TaxProvider\\_fixtures\\TestGenericExceptionTaxProvider\' threw an exception: Test exception' . \PHP_EOL
);
$processor =
new TaxProviderProcessor( $repo,
$logger,