public function setUp() { OCA_mozilla_sync\Utils::setTestState(); // Create Owncloud Test User OC_User::createUser($this->userName, $this->password); OC_Preferences::setValue($this->userName, 'settings', 'email', $this->email); OCA_mozilla_sync\OutputData::$outputFlag = OCA_mozilla_sync\OutputData::ConstOutputBuffer; OCA_mozilla_sync\Utils::setTestState(); OCA_mozilla_sync\User::createUser($this->userHash, $this->password, $this->email); }
public function setUp() { OCA_mozilla_sync\Utils::setTestState(); // Create ownCloud Test User OC_User::createUser($this->userName, $this->password); OC_User::setUserId($this->userName); \OC::$server->getConfig()->setUserValue($this->userName, 'settings', 'email', $this->email); OCA_mozilla_sync\OutputData::$outputFlag = OCA_mozilla_sync\OutputData::ConstOutputBuffer; OCA_mozilla_sync\Utils::setTestState(); OCA_mozilla_sync\User::createUser($this->userHash, $this->password, $this->email); }