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); }
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); }
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); }
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); }