Skip to content

Commit

Permalink
[CI] Fix test API urls in contract test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee committed Jan 31, 2024
1 parent 6757f92 commit 6c616f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/contract_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
env:
APP_ENV: test
DATABASE_URL: "mysql://root:[email protected]/sylius?serverVersion=${{ matrix.mysql }}"
SAFERPAY_TEST_API_URL: "https://test.saferpay.com/api"
SAFERPAY_TEST_API_URL: "https://test.saferpay.com/api/"
SAFERPAY_TEST_API_USER: ${{ secrets.SAFERPAY_TEST_API_USER }}
SAFERPAY_TEST_API_PASSWORD: ${{ secrets.SAFERPAY_TEST_API_PASSWORD }}

Expand Down
8 changes: 4 additions & 4 deletions tests/Contract/SaferpayApiTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ abstract class SaferpayApiTestCase extends JsonApiTestCase
use PantherTestCaseTrait;
use SaferpayHelperTrait;

protected const ASSERT_ENDPOINT = '/Payment/v1/PaymentPage/Assert';
protected const ASSERT_ENDPOINT = 'Payment/v1/PaymentPage/Assert';

protected const CAPTURE_ENDPOINT = '/Payment/v1/Transaction/Capture';
protected const CAPTURE_ENDPOINT = 'Payment/v1/Transaction/Capture';

protected const INITIALIZATION_ENDPOINT = '/Payment/v1/PaymentPage/Initialize';
protected const INITIALIZATION_ENDPOINT = 'Payment/v1/PaymentPage/Initialize';

protected const REFUND_ENDPOINT = '/Payment/v1/Transaction/Refund';
protected const REFUND_ENDPOINT = 'Payment/v1/Transaction/Refund';

protected const CONTENT_TYPE_HEADER = ['CONTENT_TYPE' => 'application/json', 'HTTP_ACCEPT' => 'application/json'];

Expand Down

0 comments on commit 6c616f7

Please sign in to comment.