Needs work
Project:
Mockable: Mock objects for Drupal
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Oct 2013 at 19:52 UTC
Updated:
9 Oct 2013 at 15:57 UTC
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
Comment #1
alberto56 commentedActually 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.
Comment #2
alberto56 commentedAn 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)
Comment #3
alberto56 commentedAlso, a way to retrieve the information.