Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
michielgerritsen committed Jul 11, 2024
1 parent 1fb02f2 commit a0d9b61
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Test/Unit/Model/MollieConfigProviderTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?php
/*
* Copyright Magmodules.eu. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Mollie\Payment\Test\Unit\Model;

Expand Down Expand Up @@ -32,7 +36,10 @@ public function testCallsTheApiOnlyOnce()
'mollieHelper' => $mollieHelperMock,
]);

$result = $instance->getActiveMethods($client, $this->objectManager->getObject(Quote::class));
$cart = $this->createMock(Quote::class);
$cart->method('getBillingAddress')->willReturnSelf();

$result = $instance->getActiveMethods($client, $cart);
$this->assertTrue(is_array($result));
$this->assertArrayHasKey('mollie_methods_ideal', $result);
$this->assertEquals('ideal.svg', $result['mollie_methods_ideal']['image']);
Expand Down

0 comments on commit a0d9b61

Please sign in to comment.