Let's say I have a module which interacts with a CRM via drupal_http_request.

During testing we won't have access to the actual CRM, but we would like to have some mock data without creating it from scratch. A record http requests function would be nice to allow to create mock data.

Comments

alberto56’s picture

Title: Allow modules using mockable_http_request to record transactions for ulterior mocking » Allow observers, which can be used for example to record mockable_http_request calls for ulterior mocking

Actually what we want to do is to define observers.

Any time a mockable function is called, say for example mockable_http_request, it should be able to have associated watchers.

alberto56’s picture

Status: Active » Needs work

An initial version of this has been pushed to 7.x-1.x-unstable. Still required though:

- A GUI
- A new module for this or use mockable. I am thinking a separate module will keep things clean and also serve as an example for other observers
- more tests (although it is almost completely tested)

alberto56’s picture

Also, a way to retrieve the information.