mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02: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
|
@api @ui
|
||||||
Scenario: Browsing payment requests of a payment
|
Scenario: Browsing payment requests of a payment
|
||||||
When I browse payments
|
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
|
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 "authorize"
|
||||||
And it should be the payment request with action "capture"
|
And it should be the payment request with action "capture"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
@managing_payments
|
@managing_payments
|
||||||
Feature: Seeing payment request details
|
Feature: Seeing payment request's details
|
||||||
In order to have an overview of one of payment requests
|
In order to have an overview of one of payment requests
|
||||||
As an Administrator
|
As an Administrator
|
||||||
I want to be able to see its details
|
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
|
* @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);
|
$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
|
public function thereShouldBeProductVariantsOnTheList(int $count): void
|
||||||
{
|
{
|
||||||
Assert::same(
|
Assert::same($this->indexPage->countItems(), $count);
|
||||||
$this->indexPage->countItems(),
|
|
||||||
$count,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -22,5 +22,4 @@ interface IndexPageInterface extends BaseIndexPageInterface
|
||||||
public function chooseActionToFilter(string $action): void;
|
public function chooseActionToFilter(string $action): void;
|
||||||
|
|
||||||
public function chooseStateToFilter(string $state): 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'
|
template: '@SyliusAdmin/payment_request/show/content/sections/general/created_at.html.twig'
|
||||||
updated_at:
|
updated_at:
|
||||||
template: '@SyliusAdmin/payment_request/show/content/sections/general/updated_at.html.twig'
|
template: '@SyliusAdmin/payment_request/show/content/sections/general/updated_at.html.twig'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ sylius_grid:
|
||||||
class: "%sylius.model.channel.class%"
|
class: "%sylius.model.channel.class%"
|
||||||
actions:
|
actions:
|
||||||
item:
|
item:
|
||||||
show_payment_requests:
|
list_payment_requests:
|
||||||
type: show
|
type: show
|
||||||
icon: list_letters
|
icon: list_letters
|
||||||
label: sylius.ui.list_payment_requests
|
label: sylius.ui.list_payment_requests
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue