Skip to content

test(tests): Skip flaky mock API tests#27

Merged
SmetDenis merged 5 commits intomasterfrom
update-mock-url
Sep 27, 2025
Merged

test(tests): Skip flaky mock API tests#27
SmetDenis merged 5 commits intomasterfrom
update-mock-url

Conversation

@SmetDenis
Copy link
Member

  • Temporarily skip tests using run.mocky.io due to their unreliability.
  • Update CI workflow:
    • Bump PHP version matrix to 8.2, 8.3, 8.4.
    • Upgrade actions/upload-artifact to v4.
    • Add contents: read permission and remove scheduled runs.
  • Update composer.json:
    • Increase minimum PHP requirement to 8.2.
    • Upgrade jbzoo/data, jbzoo/utils, jbzoo/event, jbzoo/toolbox-dev, rmccue/requests, and guzzlehttp/guzzle.
  • Refactor code:
    • Adjust type hint order for consistency (array|string|null).
    • Make Response class final and its properties private.
    • Add Psalm suppressions for unused classes/return values.

Replace the outdated mock endpoint in `testStatus404Body` with a new, valid URL. This ensures that the test correctly validates the 404 status response and the corresponding error body, improving test reliability and accuracy.
Change the mock API URL in the testSimple method to use a new endpoint, ensuring the test remains functional. This update is necessary as the previous URL may no longer be available or has been deprecated, and it helps maintain the reliability of our tests.
- Temporarily skip tests using `run.mocky.io` due to their unreliability.
- Update CI workflow:
    - Bump PHP version matrix to 8.2, 8.3, 8.4.
    - Upgrade `actions/upload-artifact` to v4.
    - Add `contents: read` permission and remove scheduled runs.
- Update `composer.json`:
    - Increase minimum PHP requirement to 8.2.
    - Upgrade `jbzoo/data`, `jbzoo/utils`, `jbzoo/event`, `jbzoo/toolbox-dev`, `rmccue/requests`, and `guzzlehttp/guzzle`.
- Refactor code:
    - Adjust type hint order for consistency (`array|string|null`).
    - Make `Response` class final and its properties private.
    - Add Psalm suppressions for unused classes/return values.
# Conflicts:
#	tests/AbstractDriverTest.php
@SmetDenis SmetDenis merged commit 20a20e0 into master Sep 27, 2025
19 checks passed
@SmetDenis SmetDenis deleted the update-mock-url branch September 27, 2025 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant