Example #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));
 }
Example #2
0
 /**
  * Get all themes.
  *
  * @return array
  * @static
  */
 public static function all()
 {
     return \Pingpong\Themes\Repository::all();
 }