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

alberto56’s picture

Status: Active » Needs work

OK, 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)