@@ -188,6 +188,8 @@ public function testCloneNoRemoveExistingNewLocation()
188188 */
189189 public function testExistingNonCorrespondingNodeRemoveExisting ()
190190 {
191+ $ this ->skipIfSameNameSiblingsSupported ();
192+
191193 $ srcNode = '/tests_write_manipulation_clone/testWorkspaceCloneNonCorresponding/sourceRemoveExisting ' ;
192194 $ dstNode = '/tests_additional_workspace/testWorkspaceCloneNonCorresponding/destRemoveExisting ' ;
193195
@@ -203,6 +205,8 @@ public function testExistingNonCorrespondingNodeRemoveExisting()
203205 */
204206 public function testExistingNonCorrespondingNodeNoRemoveExisting ()
205207 {
208+ $ this ->skipIfSameNameSiblingsSupported ();
209+
206210 $ srcNode = '/tests_write_manipulation_clone/testWorkspaceCloneNonCorresponding/sourceNoRemoveExisting ' ;
207211 $ dstNode = '/tests_additional_workspace/testWorkspaceCloneNonCorresponding/destNoRemoveExisting ' ;
208212
@@ -300,6 +304,8 @@ public function testCloneNonReferenceable()
300304 */
301305 public function testCloneRemoveExistingNonReferenceable ()
302306 {
307+ $ this ->skipIfSameNameSiblingsSupported ();
308+
303309 $ srcNode = '/tests_write_manipulation_clone/testWorkspaceClone/nonReferenceableRemoveExisting ' ;
304310 $ dstNode = $ srcNode ;
305311 $ destSession = self ::$ destWs ->getSession ();
@@ -321,6 +327,8 @@ public function testCloneRemoveExistingNonReferenceable()
321327 */
322328 public function testCloneNonReferenceableNoRemoveExisting ()
323329 {
330+ $ this ->skipIfSameNameSiblingsSupported ();
331+
324332 $ srcNode = '/tests_write_manipulation_clone/testWorkspaceClone/nonReferenceableNoRemoveExisting ' ;
325333 $ dstNode = $ srcNode ;
326334 $ destSession = self ::$ destWs ->getSession ();
@@ -514,4 +522,11 @@ private function renewDestinationSession()
514522 $ destSession = self ::$ loader ->getRepository ()->login (self ::$ loader ->getCredentials (), self ::$ destWsName );
515523 self ::$ destWs = $ destSession ->getWorkspace ();
516524 }
525+
526+ private function skipIfSameNameSiblingsSupported ()
527+ {
528+ if (self ::$ staticSharedFixture ['session ' ]->getRepository ()->getDescriptor ('node.type.management.same.name.siblings.supported ' )) {
529+ $ this ->markTestSkipped ('Test does not yet cover repositories that support same name siblings. ' );
530+ }
531+ }
517532}
0 commit comments