/** * Check whether the given theme in all themes. * * @param $theme * @return bool * @static */ public static function has($theme) { return \Pingpong\Themes\Repository::has($theme); }
public function test_check_theme() { $this->repository = $this->createRepository(); $result = $this->repository->has('theme1'); $this->assertTrue($result); }