mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-05 20:57:12 +00:00
[PaymentBundle] Minor improvements
This commit is contained in:
parent
89cd8b6357
commit
5e753f591a
7 changed files with 5 additions and 12 deletions
|
|
@ -18,7 +18,7 @@ Feature: Browsing payment requests
|
|||
@api @ui
|
||||
Scenario: Browsing payment requests of a payment
|
||||
When I browse payments
|
||||
And I want to view the payment request of the first payment
|
||||
And I want to view the payment requests of the first payment
|
||||
Then there should be 3 payment requests on the list
|
||||
And it should be the payment request with action "authorize"
|
||||
And it should be the payment request with action "capture"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
@managing_payments
|
||||
Feature: Seeing payment request details
|
||||
Feature: Seeing payment request's details
|
||||
In order to have an overview of one of payment requests
|
||||
As an Administrator
|
||||
I want to be able to see its details
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ final readonly class PaymentContext implements Context
|
|||
/**
|
||||
* @Given the store has :paymentMethodName payment method not assigned to any channel
|
||||
*/
|
||||
public function theStoreHasPaymentMethodNotAssignedToAnyChannel($paymentMethodName): void
|
||||
public function theStoreHasPaymentMethodNotAssignedToAnyChannel(string $paymentMethodName): void
|
||||
{
|
||||
$this->createPaymentMethod($paymentMethodName, 'PM_' . $paymentMethodName, 'Offline', 'Payment method', false);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -84,10 +84,7 @@ final readonly class ManagingPaymentRequestsContext implements Context
|
|||
*/
|
||||
public function thereShouldBeProductVariantsOnTheList(int $count): void
|
||||
{
|
||||
Assert::same(
|
||||
$this->indexPage->countItems(),
|
||||
$count,
|
||||
);
|
||||
Assert::same($this->indexPage->countItems(), $count);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -22,5 +22,4 @@ interface IndexPageInterface extends BaseIndexPageInterface
|
|||
public function chooseActionToFilter(string $action): void;
|
||||
|
||||
public function chooseStateToFilter(string $state): void;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,6 +33,3 @@ twig_hooks:
|
|||
template: '@SyliusAdmin/payment_request/show/content/sections/general/created_at.html.twig'
|
||||
updated_at:
|
||||
template: '@SyliusAdmin/payment_request/show/content/sections/general/updated_at.html.twig'
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ sylius_grid:
|
|||
class: "%sylius.model.channel.class%"
|
||||
actions:
|
||||
item:
|
||||
show_payment_requests:
|
||||
list_payment_requests:
|
||||
type: show
|
||||
icon: list_letters
|
||||
label: sylius.ui.list_payment_requests
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue