Пример #1
0
 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));
 }
Пример #2
0
 /**
  * Forget cached themes.
  *
  * @static
  */
 public static function forgetCache()
 {
     return \Pingpong\Themes\Repository::forgetCache();
 }