Skip to content

Commit

Permalink
adjusted test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
dom-mel committed Jan 8, 2012
1 parent f950178 commit 6e81604
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions _test/cases/inc/remote.test.php
Expand Up @@ -66,8 +66,8 @@ function __getRemoteInfo() {
function stringTestMethod() { return 'success'; }
function intTestMethod() { return 42; }
function floatTestMethod() { return 3.14159265; }
function dateTestMethod() { return new RemoteDate(2623452346); }
function fileTestMethod() { return new RemoteFile('file content'); }
function dateTestMethod() { return 2623452346; }
function fileTestMethod() { return 'file content'; }
function voidTestMethod() { return null; }
function oneStringArgMethod($arg) {return $arg; }
function twoArgMethod($string, $int) { return array($string, $int); }
Expand Down Expand Up @@ -131,6 +131,7 @@ function setUp() {

$this->originalConf = $conf;
$conf['remote'] = 1;
$conf['remoteuser'] = '!!not set!!';
$conf['useacl'] = 0;

$this->userinfo = $USERINFO;
Expand Down Expand Up @@ -221,8 +222,8 @@ function test_generalCoreFunctionWithoutArguments() {
$this->assertEqual($remoteApi->call('wiki.stringTestMethod'), 'success');
$this->assertEqual($remoteApi->call('wiki.intTestMethod'), 42);
$this->assertEqual($remoteApi->call('wiki.floatTestMethod'), 3.14159265);
$this->assertEqual($remoteApi->call('wiki.dateTestMethod'), new RemoteDate(2623452346));
$this->assertEqual($remoteApi->call('wiki.fileTestMethod'), new RemoteFile('file content'));
$this->assertEqual($remoteApi->call('wiki.dateTestMethod'), 2623452346);
$this->assertEqual($remoteApi->call('wiki.fileTestMethod'), 'file content');
$this->assertEqual($remoteApi->call('wiki.voidTestMethod'), null);
}

Expand Down

0 comments on commit 6e81604

Please sign in to comment.