Exemplo n.º 1
0
 public function testUnlimited()
 {
     $quota = 'unlimited';
     $expiration = time() + 86400 * 365;
     $response = API::post('users/' . self::$config['userID'] . '/storageadmin', "quota={$quota}&expiration={$expiration}", [], ["username" => self::$config['rootUsername'], "password" => self::$config['rootPassword']]);
     $this->assert200($response);
     $xml = API::getXMLFromResponse($response);
     $this->assertEquals($quota, (string) $xml->quota);
     $this->assertEquals($expiration, (int) $xml->expiration);
 }