File tree 1 file changed +9
-2
lines changed 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -187,16 +187,23 @@ public function testCopyNoUpdateOnCopy()
187
187
}
188
188
189
189
/**
190
- * Copied nodes which reference other nodes should be shown in the referrers list of references
191
- * Single value
190
+ * When a node is copied, any nodes to which it refers should show the copied node in its list of references.
192
191
*/
193
192
public function testCopyUpdateReferencesSingleValue ()
194
193
{
195
194
$ src = '/tests_write_manipulation_copy/testCopyUpdateReferrersSingleValue/srcNode ' ;
196
195
$ dst = '/tests_write_manipulation_copy/testCopyUpdateReferrersSingleValue/dstNode ' ;
197
196
$ ref = '/tests_write_manipulation_copy/testCopyUpdateReferrersSingleValue/referencedNode ' ;
198
197
198
+ $ node = $ this ->session ->getNode ($ ref );
199
+ $ references = $ node ->getReferences ();
200
+ $ this ->assertCount (1 , $ references );
201
+
199
202
$ this ->ws ->copy ($ src , $ dst );
203
+
204
+ $ references = $ node ->getReferences ();
205
+ $ this ->assertCount (2 , $ references );
206
+
200
207
$ this ->session ->refresh (true );
201
208
202
209
$ node = $ this ->session ->getNode ($ ref );
You can’t perform that action at this time.
0 commit comments