@@ -274,18 +274,18 @@ public function testWeNeedToGoDeeper()
274
274
275
275
$ user = $ this ->dm ->getRepository (get_class ($ user ))->find ($ user ->id );
276
276
$ this ->assertCount (1 , $ user ->inception );
277
- $ this ->assertEquals ($ user ->inception [0 ]->value , ' start ' );
277
+ $ this ->assertEquals (' start ' , $ user ->inception [0 ]->value );
278
278
$ this ->assertNotNull ($ user ->inception [0 ]->one );
279
- $ this ->assertEquals ($ user ->inception [0 ]->one ->value , ' start.one ' );
279
+ $ this ->assertEquals (' start.one ' , $ user ->inception [0 ]->one ->value );
280
280
$ this ->assertCount (2 , $ user ->inception [0 ]->one ->many );
281
- $ this ->assertEquals ($ user ->inception [0 ]->one ->many [0 ]->value , ' start.one.many.0 ' );
282
- $ this ->assertEquals ($ user ->inception [0 ]->one ->many [1 ]->value , ' start.one.many.1 ' );
281
+ $ this ->assertEquals (' start.one.many.0 ' , $ user ->inception [0 ]->one ->many [0 ]->value );
282
+ $ this ->assertEquals (' start.one.many.1 ' , $ user ->inception [0 ]->one ->many [1 ]->value );
283
283
$ this ->assertNotNull ($ user ->inception [0 ]->one ->one );
284
- $ this ->assertEquals ($ user ->inception [0 ]->one ->one ->value , ' start.one.one ' );
284
+ $ this ->assertEquals (' start.one.one ' , $ user ->inception [0 ]->one ->one ->value );
285
285
$ this ->assertCount (1 , $ user ->inception [0 ]->one ->one ->many );
286
- $ this ->assertEquals ($ user ->inception [0 ]->one ->one ->many [0 ]->value , ' start.one.one.many.0 ' );
286
+ $ this ->assertEquals (' start.one.one.many.0 ' , $ user ->inception [0 ]->one ->one ->many [0 ]->value );
287
287
$ this ->assertCount (1 , $ user ->inception [0 ]->one ->one ->many [0 ]->many );
288
- $ this ->assertEquals ($ user ->inception [0 ]->one ->one ->many [0 ]->many [0 ]->value , ' start.one.one.many.0.many.0 ' );
288
+ $ this ->assertEquals (' start.one.one.many.0.many.0 ' , $ user ->inception [0 ]->one ->one ->many [0 ]->many [0 ]->value );
289
289
290
290
unset($ user ->inception [0 ]->one ->many [0 ]);
291
291
$ user ->inception [0 ]->one ->many [] = new AtomicSetInception ('start.one.many.2 ' );
@@ -297,24 +297,24 @@ public function testWeNeedToGoDeeper()
297
297
298
298
$ user = $ this ->dm ->getRepository (get_class ($ user ))->find ($ user ->id );
299
299
$ this ->assertCount (1 , $ user ->inception );
300
- $ this ->assertEquals ($ user ->inception [0 ]->value , ' start ' );
300
+ $ this ->assertEquals (' start ' , $ user ->inception [0 ]->value );
301
301
$ this ->assertNotNull ($ user ->inception [0 ]->one );
302
- $ this ->assertEquals ($ user ->inception [0 ]->one ->value , ' start.one ' );
302
+ $ this ->assertEquals (' start.one ' , $ user ->inception [0 ]->one ->value );
303
303
$ this ->assertCount (2 , $ user ->inception [0 ]->one ->many );
304
304
/* Note: Since the "start.one.many" collection uses a pushAll strategy,
305
305
* "start.one.many.1" is reindexed at 0 after fetching. Before the last
306
306
* flush (when we unset "start.one.many.0"), it would still have been
307
307
* accessible via index 1.
308
308
*/
309
- $ this ->assertEquals ($ user ->inception [0 ]->one ->many [0 ]->value , ' start.one.many.1 ' );
310
- $ this ->assertEquals ($ user ->inception [0 ]->one ->many [1 ]->value , ' start.one.many.2 ' );
309
+ $ this ->assertEquals (' start.one.many.1 ' , $ user ->inception [0 ]->one ->many [0 ]->value );
310
+ $ this ->assertEquals (' start.one.many.2 ' , $ user ->inception [0 ]->one ->many [1 ]->value );
311
311
$ this ->assertNotNull ($ user ->inception [0 ]->one ->one );
312
- $ this ->assertEquals ($ user ->inception [0 ]->one ->one ->value , ' start.one.one ' );
312
+ $ this ->assertEquals (' start.one.one ' , $ user ->inception [0 ]->one ->one ->value );
313
313
$ this ->assertCount (1 , $ user ->inception [0 ]->one ->one ->many );
314
- $ this ->assertEquals ($ user ->inception [0 ]->one ->one ->many [0 ]->value , ' start.one.one.many.0 ' );
314
+ $ this ->assertEquals (' start.one.one.many.0 ' , $ user ->inception [0 ]->one ->one ->many [0 ]->value );
315
315
$ this ->assertCount (2 , $ user ->inception [0 ]->one ->one ->many [0 ]->many );
316
- $ this ->assertEquals ($ user ->inception [0 ]->one ->one ->many [0 ]->many [0 ]->value , ' start.one.one.many.0.many.0 ' );
317
- $ this ->assertEquals ($ user ->inception [0 ]->one ->one ->many [0 ]->many [1 ]->value , ' start.one.one.many.0.many.1 ' );
316
+ $ this ->assertEquals (' start.one.one.many.0.many.0 ' , $ user ->inception [0 ]->one ->one ->many [0 ]->many [0 ]->value );
317
+ $ this ->assertEquals (' start.one.one.many.0.many.1 ' , $ user ->inception [0 ]->one ->one ->many [0 ]->many [1 ]->value );
318
318
}
319
319
320
320
public function testUpdatingNestedCollectionWhileDeletingParent ()
@@ -332,14 +332,14 @@ public function testUpdatingNestedCollectionWhileDeletingParent()
332
332
333
333
$ user = $ this ->dm ->getRepository (get_class ($ user ))->find ($ user ->id );
334
334
$ this ->assertCount (1 , $ user ->inception );
335
- $ this ->assertEquals ($ user ->inception [0 ]->value , ' start ' );
335
+ $ this ->assertEquals (' start ' , $ user ->inception [0 ]->value );
336
336
$ this ->assertCount (2 , $ user ->inception [0 ]->many );
337
- $ this ->assertEquals ($ user ->inception [0 ]->many [0 ]->value , ' start.many.0 ' );
337
+ $ this ->assertEquals (' start.many.0 ' , $ user ->inception [0 ]->many [0 ]->value );
338
338
$ this ->assertCount (1 , $ user ->inception [0 ]->many [0 ]->many );
339
- $ this ->assertEquals ($ user ->inception [0 ]->many [0 ]->many [0 ]->value , ' start.many.0.many.0 ' );
340
- $ this ->assertEquals ($ user ->inception [0 ]->many [1 ]->value , ' start.many.1 ' );
339
+ $ this ->assertEquals (' start.many.0.many.0 ' , $ user ->inception [0 ]->many [0 ]->many [0 ]->value );
340
+ $ this ->assertEquals (' start.many.1 ' , $ user ->inception [0 ]->many [1 ]->value );
341
341
$ this ->assertCount (1 , $ user ->inception [0 ]->many [0 ]->many );
342
- $ this ->assertEquals ($ user ->inception [0 ]->many [1 ]->many [0 ]->value , ' start.many.1.many.0 ' );
342
+ $ this ->assertEquals (' start.many.1.many.0 ' , $ user ->inception [0 ]->many [1 ]->many [0 ]->value );
343
343
344
344
$ user ->inception [0 ]->many [0 ]->many [0 ]->value = 'start.many.0.many.0-changed ' ;
345
345
$ user ->inception [0 ]->many [0 ]->many [1 ] = new AtomicSetInception ('start.many.0.many.1 ' );
@@ -354,13 +354,13 @@ public function testUpdatingNestedCollectionWhileDeletingParent()
354
354
355
355
$ user = $ this ->dm ->getRepository (get_class ($ user ))->find ($ user ->id );
356
356
$ this ->assertCount (1 , $ user ->inception );
357
- $ this ->assertEquals ($ user ->inception [0 ]->value , ' start ' );
357
+ $ this ->assertEquals (' start ' , $ user ->inception [0 ]->value );
358
358
$ this ->assertCount (2 , $ user ->inception [0 ]->many );
359
- $ this ->assertEquals ($ user ->inception [0 ]->many [0 ]->value , ' start.many.0 ' );
359
+ $ this ->assertEquals (' start.many.0 ' , $ user ->inception [0 ]->many [0 ]->value );
360
360
$ this ->assertCount (0 , $ user ->inception [0 ]->many [0 ]->many );
361
- $ this ->assertEquals ($ user ->inception [0 ]->many [1 ]->value , ' start.many.1 ' );
361
+ $ this ->assertEquals (' start.many.1 ' , $ user ->inception [0 ]->many [1 ]->value );
362
362
$ this ->assertCount (1 , $ user ->inception [0 ]->many [1 ]->many );
363
- $ this ->assertEquals ($ user ->inception [0 ]->many [1 ]->many [0 ]->value , ' start.many.1.many.0-new ' );
363
+ $ this ->assertEquals (' start.many.1.many.0-new ' , $ user ->inception [0 ]->many [1 ]->many [0 ]->value );
364
364
}
365
365
366
366
public function testAtomicRefMany ()
0 commit comments