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!"); }
public static function tearDownAfterClass() { self::$_api->createAndSetToken(self::$_email, self::$_password); self::$_api->deleteUser(self::$_userName); }