Пример #1
0
 /**
  * Setup test data.
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $view = new AppView();
     $this->Acl = new AclHelper($view);
     Plugin::load('TestPlugin', ['autoload' => true]);
 }
Пример #2
0
 /**
  * Setup test data.
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->request = new Request(['params' => ['controller' => 'Acl', 'prefix' => 'admin', 'plugin' => 'Union/Community']]);
     $this->userData['role_id'] = Role::REGISTERED_ID;
 }