@@ -71,8 +71,20 @@ public function testWorkspaceCopy()
7171 $ this ->assertNotEquals ($ sfile ->getPropertyValue ('jcr:data ' ), $ dfile ->getPropertyValue ('jcr:data ' ));
7272 }
7373
74+ public function testWorkspaceCopyOther ()
75+ {
76+ self ::$ staticSharedFixture ['ie ' ]->import ('general/additionalWorkspace ' , 'testsAdditional ' );
77+ $ src = '/tests_additional_workspace/testWorkspaceCopyOther/node ' ;
78+ $ dst = '/tests_write_manipulation_copy/testWorkspaceCopyOther/foobar ' ;
79+
80+ $ this ->ws ->copy ($ src , $ dst , self ::$ loader ->getOtherWorkspaceName ());
81+ $ node = $ this ->session ->getNode ($ dst );
82+ $ this ->assertTrue ($ node ->hasProperty ('x ' ));
83+ $ this ->assertEquals ('y ' , $ node ->getPropertyValue ('x ' ));
84+ }
85+
7486 /**
75- * @expectedException \PHPCR\NoSuchWorkspaceException
87+ * @expectedException \PHPCR\NoSuchWorkspaceException
7688 */
7789 public function testCopyNoSuchWorkspace ()
7890 {
@@ -81,21 +93,16 @@ public function testCopyNoSuchWorkspace()
8193 $ this ->ws ->copy ($ src , $ dst , 'inexistentworkspace ' );
8294 }
8395
84- public function testWorkspaceCopyBackend ()
85- {
86- $ this ->markTestIncomplete ('TODO: just do ' );
87- }
88-
8996 /**
90- * @expectedException \PHPCR\RepositoryException
97+ * @expectedException \PHPCR\RepositoryException
9198 */
9299 public function testCopyRelativePaths ()
93100 {
94101 $ this ->ws ->copy ('foo/moo ' , 'bar/mar ' );
95102 }
96103
97104 /**
98- * @expectedException \PHPCR\RepositoryException
105+ * @expectedException \PHPCR\RepositoryException
99106 */
100107 public function testCopyInvalidDstPath ()
101108 {
@@ -105,7 +112,7 @@ public function testCopyInvalidDstPath()
105112 }
106113
107114 /**
108- * @expectedException \PHPCR\RepositoryException
115+ * @expectedException \PHPCR\RepositoryException
109116 */
110117 public function testCopyProperty ()
111118 {
@@ -115,7 +122,7 @@ public function testCopyProperty()
115122 }
116123
117124 /**
118- * @expectedException \PHPCR\PathNotFoundException
125+ * @expectedException \PHPCR\PathNotFoundException
119126 */
120127 public function testCopySrcNotFound ()
121128 {
@@ -125,7 +132,7 @@ public function testCopySrcNotFound()
125132 }
126133
127134 /**
128- * @expectedException \PHPCR\PathNotFoundException
135+ * @expectedException \PHPCR\PathNotFoundException
129136 */
130137 public function testCopyDstParentNotFound ()
131138 {
@@ -137,7 +144,7 @@ public function testCopyDstParentNotFound()
137144 /**
138145 * Verifies that there is no update-on-copy if the target node already exists
139146 *
140- * @expectedException \PHPCR\ItemExistsException
147+ * @expectedException \PHPCR\ItemExistsException
141148 */
142149 public function testCopyNoUpdateOnCopy ()
143150 {
0 commit comments