@@ -391,8 +391,14 @@ public function testPrepareForCartAdvancedNoProductsStrictTrue()
391
391
392
392
$ cached = true ;
393
393
$ associatedProducts = [];
394
- $ this ->product ->expects ($ this ->atLeastOnce ())->method ('hasData ' )->will ($ this ->returnValue ($ cached ));
395
- $ this ->product ->expects ($ this ->atLeastOnce ())->method ('getData ' )->will ($ this ->returnValue ($ associatedProducts ));
394
+ $ this ->product
395
+ ->expects ($ this ->atLeastOnce ())
396
+ ->method ('hasData ' )
397
+ ->will ($ this ->returnValue ($ cached ));
398
+ $ this ->product
399
+ ->expects ($ this ->atLeastOnce ())
400
+ ->method ('getData ' )
401
+ ->will ($ this ->returnValue ($ associatedProducts ));
396
402
397
403
$ this ->assertEquals (
398
404
$ expectedMsg ,
@@ -407,8 +413,14 @@ public function testPrepareForCartAdvancedNoProductsStrictFalse()
407
413
408
414
$ cached = true ;
409
415
$ associatedProducts = [];
410
- $ this ->product ->expects ($ this ->atLeastOnce ())->method ('hasData ' )->will ($ this ->returnValue ($ cached ));
411
- $ this ->product ->expects ($ this ->atLeastOnce ())->method ('getData ' )->will ($ this ->returnValue ($ associatedProducts ));
416
+ $ this ->product
417
+ ->expects ($ this ->atLeastOnce ())
418
+ ->method ('hasData ' )
419
+ ->will ($ this ->returnValue ($ cached ));
420
+ $ this ->product
421
+ ->expects ($ this ->atLeastOnce ())
422
+ ->method ('getData ' )
423
+ ->will ($ this ->returnValue ($ associatedProducts ));
412
424
413
425
$ this ->assertEquals (
414
426
[0 => $ this ->product ],
@@ -438,8 +450,14 @@ public function testPrepareForCartAdvancedWithProductsStrictFalseStringResult()
438
450
$ buyRequest ->setSuperGroup ([$ associatedId => 1 ]);
439
451
440
452
$ cached = true ;
441
- $ this ->product ->expects ($ this ->atLeastOnce ())->method ('hasData ' )->will ($ this ->returnValue ($ cached ));
442
- $ this ->product ->expects ($ this ->atLeastOnce ())->method ('getData ' )->will ($ this ->returnValue ([$ associatedProduct ]));
453
+ $ this ->product
454
+ ->expects ($ this ->atLeastOnce ())
455
+ ->method ('hasData ' )
456
+ ->will ($ this ->returnValue ($ cached ));
457
+ $ this ->product
458
+ ->expects ($ this ->atLeastOnce ())
459
+ ->method ('getData ' )
460
+ ->will ($ this ->returnValue ([$ associatedProduct ]));
443
461
444
462
$ this ->assertEquals (
445
463
$ associatedPrepareResult ,
@@ -470,8 +488,14 @@ public function testPrepareForCartAdvancedWithProductsStrictFalseEmptyArrayResul
470
488
$ buyRequest ->setSuperGroup ([$ associatedId => 1 ]);
471
489
472
490
$ cached = true ;
473
- $ this ->product ->expects ($ this ->atLeastOnce ())->method ('hasData ' )->will ($ this ->returnValue ($ cached ));
474
- $ this ->product ->expects ($ this ->atLeastOnce ())->method ('getData ' )->will ($ this ->returnValue ([$ associatedProduct ]));
491
+ $ this ->product ->
492
+ expects ($ this ->atLeastOnce ())
493
+ ->method ('hasData ' )
494
+ ->will ($ this ->returnValue ($ cached ));
495
+ $ this ->product ->
496
+ expects ($ this ->atLeastOnce ())
497
+ ->method ('getData ' )
498
+ ->will ($ this ->returnValue ([$ associatedProduct ]));
475
499
476
500
$ this ->assertEquals (
477
501
$ expectedMsg ,
@@ -501,8 +525,14 @@ public function testPrepareForCartAdvancedWithProductsStrictFalse()
501
525
$ buyRequest ->setSuperGroup ([$ associatedId => 1 ]);
502
526
503
527
$ cached = true ;
504
- $ this ->product ->expects ($ this ->atLeastOnce ())->method ('hasData ' )->will ($ this ->returnValue ($ cached ));
505
- $ this ->product ->expects ($ this ->atLeastOnce ())->method ('getData ' )->will ($ this ->returnValue ([$ associatedProduct ]));
528
+ $ this ->product
529
+ ->expects ($ this ->atLeastOnce ())
530
+ ->method ('hasData ' )
531
+ ->will ($ this ->returnValue ($ cached ));
532
+ $ this ->product
533
+ ->expects ($ this ->atLeastOnce ())
534
+ ->method ('getData ' )
535
+ ->will ($ this ->returnValue ([$ associatedProduct ]));
506
536
507
537
$ this ->assertEquals (
508
538
[$ this ->product ],
@@ -532,8 +562,14 @@ public function testPrepareForCartAdvancedWithProductsStrictTrue()
532
562
$ buyRequest ->setSuperGroup ([$ associatedId => 1 ]);
533
563
534
564
$ cached = true ;
535
- $ this ->product ->expects ($ this ->atLeastOnce ())->method ('hasData ' )->will ($ this ->returnValue ($ cached ));
536
- $ this ->product ->expects ($ this ->atLeastOnce ())->method ('getData ' )->will ($ this ->returnValue ([$ associatedProduct ]));
565
+ $ this ->product
566
+ ->expects ($ this ->atLeastOnce ())
567
+ ->method ('hasData ' )
568
+ ->will ($ this ->returnValue ($ cached ));
569
+ $ this ->product
570
+ ->expects ($ this ->atLeastOnce ())
571
+ ->method ('getData ' )
572
+ ->will ($ this ->returnValue ([$ associatedProduct ]));
537
573
538
574
$ this ->assertEquals (
539
575
$ associatedPrepareResult ,
0 commit comments