dingo-d / wp-pest

A package that will add WordPress integration test suite with Pest
MIT License
119 stars 5 forks source link

Fix major version download #11

Closed dingo-d closed 2 years ago

dingo-d commented 2 years ago

This PR fixes #10 issue.

Optimized fetching the available tags - added memoization, and also correct URL for fetching the available tags.

The previous link was for all the core versions, but not all core versions are tagged on GitHub. This PR fixes that issue.

Also had to create a custom MockHandler for Guzzle, to correctly handle the zip download.