Exemplo n.º 1
0
 public function testGetAndSetModuleStatus()
 {
     $status = $this->repository->active('user');
     $this->assertTrue($status);
     $this->repository->disable('user');
     $status = $this->repository->active('user');
     $this->assertFalse($status);
     $this->repository->enable('user');
 }
Exemplo n.º 2
0
 /**
  * Enabling a specific module.
  *
  * @param string $name
  * @return bool 
  * @static 
  */
 public static function enable($name)
 {
     return \Pingpong\Modules\Repository::enable($name);
 }