Skip to content
Snippets Groups Projects
Commit b86bc28a authored by iamchenxin's avatar iamchenxin Committed by Andreas Gohr
Browse files

remote.test

parent 39f70cbd
No related branches found
No related tags found
No related merge requests found
......@@ -160,10 +160,16 @@ class remote_test extends DokuWikiTest {
$this->assertTrue($this->remote->hasAccess());
}
/**
* @expectedException RemoteAccessDeniedException
*/
function test_hasAccessFail() {
global $conf;
$conf['remote'] = 0;
$this->assertFalse($this->remote->hasAccess());
// the hasAccess() should throw a Exception to keep the same semantics with xmlrpc.php.
// because the user(xmlrpc) check remote before .--> (!$conf['remote']) die('XML-RPC server not enabled.');
// so it must be a Exception when get here.
$this->remote->hasAccess();
}
function test_hasAccessFailAcl() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment