$this->context
);
/** @var PaymentMethodCollection $payments */
$payments =
$paymentRepository ->
search(new Criteria(),
$this->context
) ->
getEntities();
$creditCardPayment =
$payments->
get($creditCardPaymentId);
static::
assertNotNull($creditCardPayment);
static::
assertEquals('Credit card',
$creditCardPayment->
getDistinguishableName());
/** @var PaymentMethodEntity $invoicePaymentByShopwarePlugin */
$invoicePaymentByShopwarePlugin =
$payments->
get($invoicePaymentByShopwarePluginId);
static::
assertEquals('Invoice | Shopware (English)',
$invoicePaymentByShopwarePlugin->
getDistinguishableName());
/** @var PaymentMethodEntity $invoicePaymentByPlugin */
$invoicePaymentByPlugin =
$payments->
get($invoicePaymentByPluginId);
static::
assertEquals('Invoice | Plugin (English)',
$invoicePaymentByPlugin->
getDistinguishableName());
/** @var PaymentMethodEntity $invoicePaymentByApp */
$invoicePaymentByApp =
$payments->
get($invoicePaymentByAppId);