You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RemoteUserTest.php 673B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Test for Postfixadmin - remote vacation stuff
  4. *
  5. * @package tests
  6. */
  7. require_once('RemoteTest.php');
  8. class RemoteUserTest extends RemoteTest {
  9. public function testChangePassword() {
  10. try {
  11. $this->assertTrue($this->user->login($this->username, $this->password));
  12. $this->assertTrue($this->user->changePassword($this->password, 'foobar'));
  13. $this->assertTrue($this->user->login($this->username, 'foobar'));
  14. } catch (Exception $e) {
  15. var_dump($this->xmlrpc_client->getHttpClient()->getLastResponse()->getBody());
  16. }
  17. }
  18. }
  19. /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */