Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Raza Mehdi <[email protected]>
  • Loading branch information
srmklive committed Jun 19, 2024
1 parent 77baff8 commit 3722bb6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tests/Feature/AdapterBillingPlansPricingHelpersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ class AdapterBillingPlansPricingHelpersTest extends TestCase
use MockResponsePayloads;

/** @var string */
protected static string $access_token = '';
protected static $access_token = '';

/** @var PayPalClient */
protected PayPalClient $client;
protected $client;

protected function setUp(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Mocks/Responses/BillingPlans.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ private function mockGetPlansResponse(): array
*/
private function mockCreatePlansErrorResponse(): array
{
return Utils::jsonDecode('{
return $this->jsonDecodeFunction()('{
"error": {
"name" : "UNPROCESSABLE_ENTITY",
"message" : "The requested action could not be performed, semantically incorrect, or failed business validation.",
Expand Down
2 changes: 1 addition & 1 deletion tests/Mocks/Responses/CatalogProducts.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private function mockGetCatalogProductsResponse(): array
*/
private function mockGetCatalogProductsErrorResponse(): array
{
return Utils::jsonDecode('{
return $this->jsonDecodeFunction()('{
"error": {
"name": "INVALID_REQUEST",
"message": "Request is not well-formed, syntactically incorrect, or violates schema.",
Expand Down
6 changes: 3 additions & 3 deletions tests/Mocks/Responses/PartnerReferrals.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ private function mockShowReferralDataResponse(): array

private function mockListSellerTrackingInformationResponse(): array
{
return Utils::jsonDecode('{
return $this->jsonDecodeFunction()('{
"merchant_id": "8LQLM2ML4ZTYU",
"tracking_id": "merchantref1",
"links": [
Expand All @@ -361,7 +361,7 @@ private function mockListSellerTrackingInformationResponse(): array

private function mockShowSellerStatusResponse(): array
{
return Utils::jsonDecode('{
return $this->jsonDecodeFunction()('{
"merchant_id": "8LQLM2ML4ZTYU",
"products": [
{
Expand Down Expand Up @@ -493,7 +493,7 @@ private function mockShowSellerStatusResponse(): array

private function mockListMerchantCredentialsResponse(): array
{
return Utils::jsonDecode('{
return $this->jsonDecodeFunction()('{
"client_id": "Ab27r3fkrQezHdcPrn2b2SYzPEldXx2dWgv76btVfI-eYF8KRAd2WxXAZyb0ETygSNeHBthzlxjlQ_qw",
"client_secret": "EAcTvpnDHZf4icl_2MPnt2gRpOxHVtaQJChWU3PrRbYR4uyvUXV6h4DWQjm7XOfdnk_OrEEWdxY2eUG3",
"payer_id": "QVG98CUNMS2PY"
Expand Down

0 comments on commit 3722bb6

Please sign in to comment.