File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 6161 </sv : property >
6262 </sv : node >
6363 </sv : node >
64+ <sv : node sv : name =" testCopyFromAnotherWorkspace" >
65+ <sv : property sv : name =" jcr:primaryType" sv : type =" Name" >
66+ <sv : value >nt:unstructured</sv : value >
67+ </sv : property >
68+ <sv : node sv : name =" node" >
69+ <sv : property sv : name =" jcr:primaryType" sv : type =" Name" >
70+ <sv : value >nt:unstructured</sv : value >
71+ </sv : property >
72+ </sv : node >
73+ </sv : node >
6474</sv : node >
Original file line number Diff line number Diff line change @@ -71,6 +71,16 @@ public function testWorkspaceCopy()
7171 $ this ->assertNotEquals ($ sfile ->getPropertyValue ('jcr:data ' ), $ dfile ->getPropertyValue ('jcr:data ' ));
7272 }
7373
74+ public function testCopyFromAnotherWorkspace ()
75+ {
76+ self ::$ staticSharedFixture ['ie ' ]->import ('general/additionalWorkspace ' , 'additionalWorkspace ' );
77+ $ src = '/tests_additional_workspace/testCopyNoSuchWorkspace/node ' ;
78+ $ dst = '/tests_write_manipulation_copy/testCopyFromAnotherWorkspace/foobar ' ;
79+
80+ $ this ->ws ->copy ($ src , $ dst , 'testsAdditional ' );
81+ $ node = $ this ->session ->getNode ($ dest );
82+ }
83+
7484 /**
7585 * @expectedException \PHPCR\NoSuchWorkspaceException
7686 */
You can’t perform that action at this time.
0 commit comments