X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2F5DemofilesTest.php;h=3cbb5b44439f54804cbef41919a42604a9848a0b;hb=640b8c0e60bb8a13dde241ec4d23ca1f58bb5b8a;hp=b7a38716596c43d72578486799d3568f9ec88539;hpb=4bc0f6904a12381079bec46ad648f6170f07d449;p=plcapi.git diff --git a/tests/5DemofilesTest.php b/tests/5DemofilesTest.php index b7a3871..3cbb5b4 100644 --- a/tests/5DemofilesTest.php +++ b/tests/5DemofilesTest.php @@ -2,6 +2,9 @@ include_once __DIR__ . '/LocalFileTestCase.php'; +/** + * Tests for php files in the 'demo' directory + */ class DemoFilesTest extends PhpXmlRpc_LocalFileTestCase { public function setUp() @@ -18,19 +21,10 @@ class DemoFilesTest extends PhpXmlRpc_LocalFileTestCase $page = $this->request('client/agesort.php'); } - public function testClient() + public function testGetStateName() { - $page = $this->request('client/client.php'); - - // we could test many more calls to the client demo, but the upstream server is gone anyway... - - $page = $this->request('client/client.php', 'POST', array('stateno' => '1')); - } - - public function testComment() - { - $page = $this->request('client/comment.php'); - $page = $this->request('client/client.php', 'POST', array('storyid' => '1')); + $page = $this->request('client/getstatename.php'); + $page = $this->request('client/getstatename.php', 'POST', array('stateno' => '1')); } public function testIntrospect() @@ -41,8 +35,7 @@ class DemoFilesTest extends PhpXmlRpc_LocalFileTestCase public function testMail() { $page = $this->request('client/mail.php'); - $page = $this->request('client/client.php', 'POST', array( - 'server' => '', + $page = $this->request('client/mail.php', 'POST', array( "mailto" => '', "mailsub" => '', "mailmsg" => '', @@ -52,9 +45,9 @@ class DemoFilesTest extends PhpXmlRpc_LocalFileTestCase )); } - public function testSimpleCall() + public function testProxy() { - $page = $this->request('client/simple_call.php', 'GET', null, true); + $page = $this->request('client/proxy.php', 'GET', null, true); } public function testWhich() @@ -67,11 +60,6 @@ class DemoFilesTest extends PhpXmlRpc_LocalFileTestCase $page = $this->request('client/wrap.php'); } - public function testZopeTest() - { - $page = $this->request('client/zopetest.php'); - } - public function testDiscussServer() { $page = $this->request('server/discuss.php');