Skip to content

Commit

Permalink
Update icon tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Sep 17, 2024
1 parent 454c995 commit 9a373a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/php/Functional/PaymentMethod/PaymentMethodTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function showDefaultIcon(){
$this->helperMocks->paymentMethodMergedProperties($paymentMethodName, false, true)
);
expect('esc_url')->with($urlBuild)->andReturn($urlBuild);
$expectedUrl = '<img src="' . $urlBuild . '" class="mollie-gateway-icon" />';
$expectedUrl = '<img src="' . $urlBuild . '" class="mollie-gateway-icon" alt=""/>';
$iconUrl = $testee->getIconUrl();
self::assertEquals($expectedUrl, $iconUrl);
}
Expand Down Expand Up @@ -79,7 +79,7 @@ public function fallbackToDefaultIcon(){
);
expect('esc_url')->withAnyArgs()->andReturn($urlBuild);

$expectedUrl = '<img src="' . $urlBuild . '" class="mollie-gateway-icon" />';
$expectedUrl = '<img src="' . $urlBuild . '" class="mollie-gateway-icon" alt=""/>';
$iconUrl = $testee->getIconUrl();
self::assertEquals($expectedUrl, $iconUrl);
}
Expand Down Expand Up @@ -109,7 +109,7 @@ public function showCustomIcon(){
expect('file_exists')->with($testSettings['iconFilePath'])->andReturn(true);
expect('esc_url')->withAnyArgs()->andReturn($urlBuild);

$expectedUrl = '<img src="' . $urlBuild . '" class="mollie-gateway-icon" />';
$expectedUrl = '<img src="' . $urlBuild . '" class="mollie-gateway-icon" alt=""/>';
$iconUrl = $testee->getIconUrl();
self::assertEquals($expectedUrl, $iconUrl);
}
Expand Down

0 comments on commit 9a373a1

Please sign in to comment.