[PaymentBundle] Minor improvements

This commit is contained in:
Wojdylak 2024-09-27 09:44:07 +02:00
parent 89cd8b6357
commit 5e753f591a
No known key found for this signature in database
GPG key ID: 7509E560A6821ABE
7 changed files with 5 additions and 12 deletions

View file

@ -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"

View file

@ -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

View file

@ -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);
}

View file

@ -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);
}
/**

View file

@ -22,5 +22,4 @@ interface IndexPageInterface extends BaseIndexPageInterface
public function chooseActionToFilter(string $action): void;
public function chooseStateToFilter(string $state): void;
}

View file

@ -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'

View file

@ -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