Пример #1
0
 public function testUsed()
 {
     $this->repository->setUsed('user');
     $used = $this->repository->getUsed();
     $this->assertEquals('user', $used->getLowerName());
 }
Пример #2
0
 /**
  * Set module used for cli session.
  *
  * @param $name
  * @throws ModuleNotFoundException
  * @static 
  */
 public static function setUsed($name)
 {
     return \Pingpong\Modules\Repository::setUsed($name);
 }