@@ -159,15 +159,15 @@ private function doTestMultiValueReference($nodeNames, $nodeCollectionNames, $re
159
159
public function testSetUuidNewReferenceable ()
160
160
{
161
161
$ 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 ' );
163
163
$ node ->addMixin ('mix:referenceable ' );
164
164
$ node ->setProperty ('jcr:uuid ' , $ uuid );
165
165
$ this ->session ->save ();
166
166
$ this ->assertSame ($ uuid , $ node ->getIdentifier ());
167
167
168
168
$ session = $ this ->renewSession ();
169
169
170
- $ node = $ session -> getNode ('/tests_general_base/index.txt/jcr:content/ newId ' );
170
+ $ node = $ this -> node -> getNode ('newId ' );
171
171
$ this ->assertSame ($ uuid , $ node ->getIdentifier ());
172
172
}
173
173
@@ -176,7 +176,7 @@ public function testSetUuidNewReferenceable()
176
176
*/
177
177
public function testSetUuidNewButNonreferenceable ()
178
178
{
179
- $ node = $ this ->session -> getNode ( ' /tests_general_base/index.txt/jcr:content ' ) ->addNode ('newNonref ' , 'nt:unstructured ' );
179
+ $ node = $ this ->node ->addNode ('newNonref ' , 'nt:unstructured ' );
180
180
$ node ->setProperty ('jcr:uuid ' , 'bbbb61c0-09ab-42a9-87c0-308ccc93aaaa ' );
181
181
}
182
182
@@ -185,16 +185,14 @@ public function testSetUuidNewButNonreferenceable()
185
185
*/
186
186
public function testSetUuidReferenceableButExisting ()
187
187
{
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 ' );
190
189
}
191
190
192
191
/**
193
192
* @expectedException \PHPCR\NodeType\ConstraintViolationException
194
193
*/
195
194
public function testSetUuidButNotReferenceableExisting ()
196
195
{
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 ' );
199
197
}
200
198
}
0 commit comments