You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by ri...@apache.org on 2013/07/03 05:48:04 UTC
svn commit: r1499189 - in /chemistry/phpclient/trunk/test: ./ atom/
atom/AlfrescoH2CMISTest.php
Author: richardm
Date: Wed Jul 3 03:48:04 2013
New Revision: 1499189
URL: http://svn.apache.org/r1499189
Log:
Add a placeholder unit test
Added:
chemistry/phpclient/trunk/test/atom/
chemistry/phpclient/trunk/test/atom/AlfrescoH2CMISTest.php
Modified:
chemistry/phpclient/trunk/test/ (props changed)
Propchange: chemistry/phpclient/trunk/test/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Wed Jul 3 03:48:04 2013
@@ -0,0 +1 @@
+utils
Added: chemistry/phpclient/trunk/test/atom/AlfrescoH2CMISTest.php
URL: http://svn.apache.org/viewvc/chemistry/phpclient/trunk/test/atom/AlfrescoH2CMISTest.php?rev=1499189&view=auto
==============================================================================
--- chemistry/phpclient/trunk/test/atom/AlfrescoH2CMISTest.php (added)
+++ chemistry/phpclient/trunk/test/atom/AlfrescoH2CMISTest.php Wed Jul 3 03:48:04 2013
@@ -0,0 +1,19 @@
+<?php
+require_once('../utils/phpunit.phar');
+require_once('../../atom/cmis-lib.php');
+class AlfrescoCMISH2Test extends PHPUnit_Framework_TestCase
+{
+ protected $client;
+ protected function setUp() {
+ $repo_url = "http://localhost:8080/alfresco/cmisatom";
+ $repo_username = "admin";
+ $repo_password = "admin";
+ $this->client = new CMISService($repo_url, $repo_username, $repo_password);
+ }
+ public function testGetSites() {
+ $folder = $this->client->getObjectByPath("/Sites");
+ $this->assertEquals("F:st:sites",$folder->properties["cmis:objectTypeId"]);
+ $this->assertEquals("cmis:folder",$folder->properties["cmis:baseTypeId"]);
+ }
+}
+?>