示例#1
0
 protected function setup()
 {
     parent::setup();
     $this->userManager = \OC::$server->getUserManager();
     $this->groupManager = \OC::$server->getGroupManager();
     $this->userSession = \OC::$server->getUserSession();
     $this->api = new \OCA\Provisioning_API\Groups($this->groupManager, $this->userSession);
 }
示例#2
0
文件: appstest.php 项目: evanjt/core
 public function setup()
 {
     parent::setup();
     $this->appManager = \OC::$server->getAppManager();
     $this->groupManager = \OC::$server->getGroupManager();
     $this->userSession = \OC::$server->getUserSession();
     $this->api = new Apps($this->appManager);
 }
示例#3
0
 protected function setUp()
 {
     parent::setUp();
     $this->appManager = \OC::$server->getAppManager();
     $this->groupManager = \OC::$server->getGroupManager();
     $this->userSession = \OC::$server->getUserSession();
     $this->ocsClient = $this->getMockBuilder('OC\\OCSClient')->disableOriginalConstructor()->getMock();
     $this->api = new Apps($this->appManager, $this->ocsClient);
 }
示例#4
0
 protected function setup()
 {
     parent::setup();
     $this->userManager = \OC::$server->getUserManager();
     $this->config = \OC::$server->getConfig();
     $this->groupManager = \OC::$server->getGroupManager();
     $this->userSession = \OC::$server->getUserSession();
     $this->api = new \OCA\Provisioning_Api\Users($this->userManager, $this->config, $this->groupManager, $this->userSession);
     $this->userSession->setUser(null);
 }