public function testItCanCacheWidgets() { $output = $this->factory->run('testCachedWidget', ['foo' => 'bar']); $key = 'arrilot.widgets.' . serialize(['testCachedWidget', ['foo' => 'bar']]); $widget = new TestCachedWidget(); $this->assertEquals('Cached output. Key: ' . $key . ', minutes: ' . $widget->cacheTime, $output); }