示例#1
0
 public function testHas()
 {
     $this->repository->set('default::test.has', true);
     $this->assertTrue($this->liaison->has('test.has'));
     $this->assertFalse($this->liaison->has('test.hasnt'));
 }
示例#2
0
 /**
  * Prepend the "site" config group and the current site handle
  * @param $key
  * @return string
  */
 protected function transformKey($key)
 {
     $key = sprintf('site.sites.%s.%s', $this->site->getSiteHandle(), $key);
     return parent::transformKey($key);
 }