Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulritter committed Mar 20, 2024
1 parent 0b1e444 commit bdf8cf9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
3 changes: 0 additions & 3 deletions Test/Unit/Model/Api/GuestAdyenStateDataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,8 @@ public function testSaveSuccessful()

$this->quoteIdMaskFactoryMock->method('create')->willReturn($this->quoteIdMaskMock);
$this->stateDataHelperMock->expects($this->once())->method('saveStateData')->willReturn($stateDataMock);
//should return int


$this->guestAdyenStateDataModel->save($stateData, $cartId);
// $this->assertIsInt($result);
}

public function testRemoveSuccessful()
Expand Down
22 changes: 0 additions & 22 deletions Test/Unit/Model/Resolver/GetAdyenPaymentMethodsBalanceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,28 +71,6 @@ public function testWithValidPayloadArgument()

$this->assertEquals(['balanceResponse' => $expectedBalanceResponse], $result);
}

// public function testWithAdyensAPIReturningAnError()
// {
// $payload = '{"some":"data"}';
// $args = ['payload' => $payload];
//
// $this->balanceMock->expects($this->once())
// ->method('getBalance')
// ->with($payload)
// ->willThrowException(new Exception('API Error'));
//
// $this->expectException(GraphQlAdyenException::class);
// $this->expectExceptionMessage('An error occurred while fetching the payment method balance.');
//
// $fieldMock = $this->createMock(\Magento\Framework\GraphQl\Query\Fields::class);
// $contextMock = $this->createMock(\Magento\Framework\GraphQl\Config\Element\Field::class);
// $resolveInfoMock = $this->createMock(ResolveInfo::class);
//
// $result = $this->getAdyenPaymentMethodsBalance->resolve($fieldMock, $contextMock, $resolveInfoMock, [], $args);
// }


}


Expand Down

0 comments on commit bdf8cf9

Please sign in to comment.