@@ -190,13 +190,14 @@ public function testSessionMoveWhitespace()
190
190
*/
191
191
public function testSessionMoveReferenceable ()
192
192
{
193
- // has mix:referenceable
194
- $ src = '/tests_write_manipulation_move/testSessionMoveReferenceable/srcNode ' ;
195
- $ dst = '/tests_write_manipulation_move/testSessionMoveReferenceable/dstNode/srcNode ' ;
196
-
197
- $ srcUuid = $ this ->session ->getNode ($ src )->getIdentifier ();
193
+ $ dst = $ this ->node ->getPath () . '/dstNode/srcNode ' ;
194
+ $ node = $ this ->node ->getNode ('srcNode ' );
195
+ $ srcUuid = $ node ->getIdentifier ();
196
+ $ src = $ node ->getPath ();
198
197
$ this ->session ->move ($ src , $ dst );
199
198
199
+ $ this ->assertSame ($ node , $ this ->session ->getNodeByIdentifier ($ srcUuid ));
200
+
200
201
// Session
201
202
$ this ->assertFalse ($ this ->session ->nodeExists ($ src ), 'Source node still exists [S] ' );
202
203
$ this ->assertTrue ($ this ->session ->nodeExists ($ dst ), 'Destination node not found [S] ' );
@@ -302,8 +303,8 @@ public function testSessionMoveReplace()
302
303
$ dst = $ this ->node ->getPath ().'/moved ' ;
303
304
$ src2 = $ this ->node ->getPath ().'/replacement ' ;
304
305
305
- $ move = $ this ->node ->getNode ('node ' );
306
- $ replacement = $ this ->node ->getNode ('replacement ' );
306
+ $ this ->node ->getNode ('node ' );
307
+ $ this ->node ->getNode ('replacement ' );
307
308
308
309
$ this ->session ->move ($ src , $ dst );
309
310
$ this ->session ->move ($ src2 , $ src );
@@ -356,9 +357,9 @@ public function testSessionMoveAdded()
356
357
$ this ->assertTrue ($ this ->session ->nodeExists ($ dst ), 'Destination node not found [S] ' );
357
358
358
359
// Backend
359
- $ this -> session = $ this ->saveAndRenewSession ();
360
- $ this ->assertFalse ($ this -> session ->nodeExists ($ src ), 'Source node still exists [B] ' );
361
- $ this ->assertTrue ($ this -> session ->nodeExists ($ dst ), 'Destination node not found [B] ' );
360
+ $ session = $ this ->saveAndRenewSession ();
361
+ $ this ->assertFalse ($ session ->nodeExists ($ src ), 'Source node still exists [B] ' );
362
+ $ this ->assertTrue ($ session ->nodeExists ($ dst ), 'Destination node not found [B] ' );
362
363
363
364
$ session = $ this ->saveAndRenewSession ();
364
365
$ this ->assertFalse ($ session ->nodeExists ($ src ), 'Source child node still exists [B] ' );
0 commit comments