Skip to content

Commit

Permalink
[CoreBundle] Fix payment method fixture configuration test
Browse files Browse the repository at this point in the history
  • Loading branch information
pamil committed Jan 21, 2021
1 parent 75f070f commit 16e99fe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function payment_method_gateway_configuration_is_optional(): void
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']]]]]);
}

/**
Expand Down Expand Up @@ -115,7 +115,7 @@ public function payment_method_instructions_configuration_is_optional(): void
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']]]]);
}

/**
Expand Down

0 comments on commit 16e99fe

Please sign in to comment.