You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
968 B
PHP
39 lines
968 B
PHP
<?php
|
|
/**
|
|
* Test for Postfixadmin - remote vacation stuff
|
|
*
|
|
* @package tests
|
|
*/
|
|
|
|
require_once('RemoteTest.php');
|
|
|
|
class RemoteUserTest extends RemoteTest {
|
|
public function __construct() {
|
|
parent::__construct();
|
|
global $CONF;
|
|
}
|
|
|
|
|
|
/**
|
|
* Adds the test recipient data to the database.
|
|
*/
|
|
public function setUp() {
|
|
parent::setUp();
|
|
}
|
|
public function tearDown() {
|
|
parent::tearDown();
|
|
}
|
|
|
|
public function testChangePassword() {
|
|
try {
|
|
$this->assertTrue($this->user->login($this->username, $this->password));
|
|
$this->assertTrue($this->user->changePassword($this->password, 'foobar'));
|
|
$this->assertTrue($this->user->login($this->username, 'foobar'));
|
|
} catch (Exception $e) {
|
|
var_dump($this->xmlrpc_client->getHttpClient()->getLastResponse()->getBody());
|
|
}
|
|
}
|
|
}
|
|
|
|
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */
|