@@ -159,15 +159,15 @@ private function doTestMultiValueReference($nodeNames, $nodeCollectionNames, $re
159159 public function testSetUuidNewReferenceable ()
160160 {
161161 $ uuid = 'aaaa61c0-09ab-42a9-87c0-308ccc93aaaa ' ;
162- $ node = $ this ->session -> getNode ( ' /tests_general_base/index.txt/jcr:content ' ) ->addNode ('newId ' , 'nt:unstructured ' );
162+ $ node = $ this ->node ->addNode ('newId ' , 'nt:unstructured ' );
163163 $ node ->addMixin ('mix:referenceable ' );
164164 $ node ->setProperty ('jcr:uuid ' , $ uuid );
165165 $ this ->session ->save ();
166166 $ this ->assertSame ($ uuid , $ node ->getIdentifier ());
167167
168168 $ session = $ this ->renewSession ();
169169
170- $ node = $ session -> getNode ('/tests_general_base/index.txt/jcr:content/ newId ' );
170+ $ node = $ this -> node -> getNode ('newId ' );
171171 $ this ->assertSame ($ uuid , $ node ->getIdentifier ());
172172 }
173173
@@ -176,7 +176,7 @@ public function testSetUuidNewReferenceable()
176176 */
177177 public function testSetUuidNewButNonreferenceable ()
178178 {
179- $ node = $ this ->session -> getNode ( ' /tests_general_base/index.txt/jcr:content ' ) ->addNode ('newNonref ' , 'nt:unstructured ' );
179+ $ node = $ this ->node ->addNode ('newNonref ' , 'nt:unstructured ' );
180180 $ node ->setProperty ('jcr:uuid ' , 'bbbb61c0-09ab-42a9-87c0-308ccc93aaaa ' );
181181 }
182182
@@ -185,16 +185,14 @@ public function testSetUuidNewButNonreferenceable()
185185 */
186186 public function testSetUuidReferenceableButExisting ()
187187 {
188- $ node = $ this ->session ->getNode ('/tests_general_base/idExample ' );
189- $ node ->setProperty ('jcr:uuid ' , 'cccc61c0-09ab-42a9-87c0-308ccc93aaaa ' );
188+ $ this ->node ->setProperty ('jcr:uuid ' , 'cccc61c0-09ab-42a9-87c0-308ccc93aaaa ' );
190189 }
191190
192191 /**
193192 * @expectedException \PHPCR\NodeType\ConstraintViolationException
194193 */
195194 public function testSetUuidButNotReferenceableExisting ()
196195 {
197- $ node = $ this ->session ->getNode ('/tests_general_base/index.txt/jcr:content ' );
198- $ node ->setProperty ('jcr:uuid ' , 'dddd61c0-09ab-42a9-87c0-308ccc93aaaa ' );
196+ $ this ->node ->setProperty ('jcr:uuid ' , 'dddd61c0-09ab-42a9-87c0-308ccc93aaaa ' );
199197 }
200198}
0 commit comments