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; }
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); }
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(); }
public function setUp() { parent::setUp(); API::userClear(self::$config['userID']); }
public function setUp() { parent::setUp(); API::useAPIVersion(2); }
public function setUp() { parent::setUp(); API::userClear(self::$config['userID']); API::groupClear(self::$config['ownedPrivateGroupID']); }