示例#1
0
 public function setUp()
 {
     parent::setUp();
     // Create too-long note content
     $this->content = str_repeat("1234567890", 25001);
     // Create JSON template
     $this->json = API::getItemTemplate("note");
     $this->json->note = $this->content;
 }
示例#2
0
 public function setUp()
 {
     parent::setUp();
     // Clear subscription
     $response = API::post('users/' . self::$config['userID'] . '/storageadmin', 'quota=0&expiration=0', [], ["username" => self::$config['rootUsername'], "password" => self::$config['rootPassword']]);
     $this->assert200($response);
     $xml = API::getXMLFromResponse($response);
     $this->assertEquals(self::DEFAULT_QUOTA, (int) $xml->quota);
 }
示例#3
0
 public function setUp()
 {
     parent::setUp();
     // Delete work files
     $delete = array("file", "old", "new", "patch");
     foreach ($delete as $file) {
         if (file_exists("work/{$file}")) {
             unlink("work/{$file}");
         }
     }
     clearstatcache();
 }
示例#4
0
 public function setUp()
 {
     parent::setUp();
     API::userClear(self::$config['userID']);
 }
示例#5
0
 public function setUp()
 {
     parent::setUp();
     API::useAPIVersion(2);
 }
示例#6
0
 public function setUp()
 {
     parent::setUp();
     API::userClear(self::$config['userID']);
     API::groupClear(self::$config['ownedPrivateGroupID']);
 }