コード例 #1
0
 public function testDeleteUser()
 {
     $this->_createuser();
     $result = $this->_api->deleteUser($this->_userName);
     $this->assertTrue($result);
     $this->_manuallyDeleted = true;
     try {
         $this->_api->deleteUser($this->_userName);
     } catch (UnauthorizedError $e) {
         return;
     }
     $this->fail("Expected UnauthorizedError has not been raised!");
 }
コード例 #2
0
 public static function tearDownAfterClass()
 {
     self::$_api->createAndSetToken(self::$_email, self::$_password);
     self::$_api->deleteUser(self::$_userName);
 }