mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
[CoreBundle] Fix payment method fixture configuration test
This commit is contained in:
parent
75f070fc38
commit
16e99feb06
1 changed files with 2 additions and 2 deletions
|
|
@ -78,7 +78,7 @@ final class PaymentMethodFixtureTest extends TestCase
|
|||
public function payment_method_instructions_configuration_must_by_string(): void
|
||||
{
|
||||
$this->assertConfigurationIsValid([['custom' => [['instructions' => 'test']]]], 'custom.*.instructions');
|
||||
$this->assertConfigurationIsInvalid([['custom' => [['instructions' => ['test']]]]], 'Invalid type for path "payment_method.custom.0.instructions". Expected scalar, but got array');
|
||||
$this->assertConfigurationIsInvalid([['custom' => [['instructions' => ['test']]]]]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -115,7 +115,7 @@ final class PaymentMethodFixtureTest extends TestCase
|
|||
public function payment_method_gateway_configuration_must_by_array(): void
|
||||
{
|
||||
$this->assertConfigurationIsValid([['custom' => [['gatewayConfig' => ['username' => 'USERNAME']]]]], 'custom.*.gatewayConfig');
|
||||
$this->assertConfigurationIsInvalid([['custom' => [['gatewayConfig' => 'USERNAME']]]], 'Invalid type for path "payment_method.custom.0.gatewayConfig". Expected array, but got string');
|
||||
$this->assertConfigurationIsInvalid([['custom' => [['gatewayConfig' => 'USERNAME']]]]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue