예제 #1
0
 function test_EmptyArray()
 {
     OCA_mozilla_sync\OutputData::$outputFlag = OCA_mozilla_sync\OutputData::ConstOutputBuffer;
     OCA_mozilla_sync\OutputData::$outputBuffer = '';
     OCA_mozilla_sync\OutputData::write(array());
     $this->assertTrue(OCA_mozilla_sync\OutputData::$outputBuffer === "[]\n");
 }
예제 #2
0
 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);
 }
예제 #3
0
 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_Preferences::setValue($this->userName, 'settings', 'email', $this->email);
     OCA_mozilla_sync\OutputData::$outputFlag = OCA_mozilla_sync\OutputData::ConstOutputBuffer;
     OCA_mozilla_sync\Utils::setTestState();
     $this->urlParser = new OCA_mozilla_sync\UrlParser('/1.0/' . $this->userHash);
 }
예제 #4
0
 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);
 }