Skip to content

Commit

Permalink
Ok fixes (#198)
Browse files Browse the repository at this point in the history
* getHttpHeaders function added

* Function updated to allow nullable request

* Function updated to allow nullable request

* Fixes to pass tests in accordance with respective request class

* fixes failure "Iyzipay\Tests\Request\CreateBasicBkmInitializeRequestTest::test_should_get_json_object"

* fixes failure "6) Iyzipay\Tests\Request\CreateBlacklistedCardRequestTest::test_should_convert_to_pki_request_string"

* fixes failure "7) Iyzipay\Tests\Request\CreateCheckoutFormInitializeRequestTest::test_should_get_json_string"

* fixes failure "8) Iyzipay\Tests\Request\CreateIyziupFormInitializeRequestTest::test_should_get_json_string"

* fixes failure "9) Iyzipay\Tests\Request\CreateIyziupFormInitializeRequestWithInitialConsumerTest::test_should_get_json_string"

* fixes failure "10) Iyzipay\Tests\Request\Subscription\SubscriptionUpgradeRequestTest::test_should_get_json_string"

* fixes failure "11) Iyzipay\Tests\Request\UpdateBlacklistedCardRequestTest::test_should_convert_to_pki_request_string"

* fixes failure "5) Iyzipay\Tests\Request\CreateBasicPaymentRequestTest::test_should_get_json_string"

* fixes failure "6) Iyzipay\Tests\Request\CreateBlacklistedCardRequestTest::test_should_convert_to_pki_request_string"

* fixes failure "1) Iyzipay\Tests\DefaultHttpClientTest::test_should_check_if_options_not_empty"

* fixes error 1 "Call to undefined method..."

* fixes error 2 "file_get_contents/.... Failed to open stream"

* Put, Patch fix

---------

Co-authored-by: Osman Keser <[email protected]>
  • Loading branch information
SKMan and osman-keser authored Sep 23, 2024
1 parent ea9b422 commit 81b3b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Iyzipay/Tests/IyzipayResourceTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function setUp(): void
parent::setUp();

$this->httpClient = $this->getMockBuilder("HttpClient")
->setMethods(array("get", "getV2","post", "patch", "delete", "exchange"))
->setMethods(array("get", "getV2","post", "put", "patch", "delete", "exchange"))
->getMock();

ApiResource::setHttpClient($this->httpClient);
Expand Down

0 comments on commit 81b3b04

Please sign in to comment.