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 980B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 __construct() {
  10. parent::__construct();
  11. global $CONF;
  12. }
  13. /**
  14. * Adds the test recipient data to the database.
  15. */
  16. public function setUp() {
  17. parent::setUp();
  18. }
  19. public function tearDown() {
  20. parent::tearDown();
  21. }
  22. public function testChangePassword() {
  23. try {
  24. $this->assertTrue($this->user->login($this->username, $this->password));
  25. $this->assertTrue($this->user->changePassword($this->password, 'foobar'));
  26. $this->assertTrue($this->user->login($this->username, 'foobar'));
  27. }
  28. catch(Exception $e) {
  29. var_dump($this->xmlrpc_client->getHttpClient()->getLastResponse()->getBody());
  30. }
  31. }
  32. }
  33. /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */