public function test_get_cached_if_cache_enabled() { $this->app->config->set(['themes.cache.enabled' => true]); $this->repository = $this->createRepository(); $this->repository->all(); $result = $this->repository->getCached(); $this->repository->forgetCache(); $this->app->config->set(['themes.cache.enabled' => false]); $this->assertEquals(2, count($result)); }
/** * Get cached themes. * * @return array * @static */ public static function getCached() { return \Pingpong\Themes\Repository::getCached(); }