-
Notifications
You must be signed in to change notification settings - Fork 20
Complete CloudApiClient #12
Comments
Added method to purge Varnish cache at 4271ec5. |
@cpliakas -- I've followed the original unit test examples you provided, the change to check responses doesn't actually use a mock, it's just using a standard Guzzle event subscriber. First add a callback function for the create_request event, like:
Since most of these URLs are similar in our tests, I use a const to alias the most common chunk:
After instantiating the cloudapiclient, but before calling the domains method, add the domainsCallListener method as an event listener for client.create_request events:
There's probably a more "phpunit" way to handle this using its built-in mocking capability, but this seemed like a quick and easy way to deal with it. |
PRs in for add/delete domains and delete backups. |
Remaining calls added at https://github.com/acquia/acquia-sdk-php/tree/18-refactor. Testing system has been refactored to make it a little easier to write tests. Wrapper methods are also removed from the client for transparency, and the response objects are a little more DRY and provide methods to get the data returned so you know what is available. |
The CloudApiClient class is missing methods for the following API functions
The text was updated successfully, but these errors were encountered: