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:
27 Sep 2013 at 14:53 UTC
Updated:
27 Sep 2013 at 16:04 UTC
Mocking the current time is something many module are going to need to do. It therefore needs to be as simple as possible for a module to do this.
An intermediary module between mockable_time_example and mockable seems like a good idea.
Comments
Comment #1
alberto56 commentedOK, I pushed this to 7.x-1.x-unstable.
I'm leaving to needs work because we still need to test the javascript here, and document and test new functionality such as speeding up or slowing down the clock.
Also, we'll probably want to factor PhantomJS testing out of mockable_browser so we can use it here too (perhaps a new phantomjs_simpletest module might be in order)