Skip to content

Refactor SearchDocs tests to use Http facade #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 12, 2025

Conversation

pushpak1300
Copy link
Member

Description

This pull request refactors the SearchDocs tests by replacing Mockery with Laravel's Http facade for a cleaner and more maintainable approach. Key changes include:

  • Replaced Mockery with Http::fake and Http::assertSent.
  • Updated MakesHttpRequests to support the testing environment with proper SSL verification handling.
  • Added guzzlehttp/guzzle as a dependency in composer.json.

These updates simplify the test logic and modernize the approach for handling HTTP requests in tests.

…date request verification logic

- Added `guzzlehttp/guzzle` as a dependency in `composer.json`.
- Updated `MakesHttpRequests` to support `testing` environment for SSL verification.
- Simplified and modernized tests with `Http::fake` and `Http::assertSent`.
@ashleyhindle
Copy link
Collaborator

Is guzzle a dependency? I thought Http found any compatible PSR-7 client?

Trying to keep the boost dependencies really small, so want to be 100% certain here

@ashleyhindle ashleyhindle merged commit 6b990fc into main Aug 12, 2025
10 checks passed
@ashleyhindle ashleyhindle deleted the fix/failing_test_for_search_docs branch August 13, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants