@@ -400,7 +400,7 @@ public function it_can_process_all()
400
400
]);
401
401
402
402
$ connection = $ this ->newConnectionMock ();
403
- $ connection ->shouldReceive ('scan ' )->with ($ params )->andReturn ($ return );
403
+ $ connection ->shouldReceive ('scan ' )->with ($ params )->andReturn ($ return )-> once () ;
404
404
$ this ->setConnectionResolver ($ connection );
405
405
406
406
UserA::all ();
@@ -423,7 +423,7 @@ public function it_can_save_new_instance()
423
423
];
424
424
425
425
$ connection = $ this ->newConnectionMock ();
426
- $ connection ->shouldReceive ('putItem ' )->with ($ params );
426
+ $ connection ->shouldReceive ('putItem ' )->with ($ params )-> once () ;
427
427
$ this ->setConnectionResolver ($ connection );
428
428
429
429
$ user = new UserA (['partition ' => 'p ' ]);
@@ -448,7 +448,7 @@ public function it_can_static_create_new_instance()
448
448
];
449
449
450
450
$ connection = $ this ->newConnectionMock ();
451
- $ connection ->shouldReceive ('putItem ' )->with ($ params );
451
+ $ connection ->shouldReceive ('putItem ' )->with ($ params )-> once () ;
452
452
$ this ->setConnectionResolver ($ connection );
453
453
454
454
UserD::create (['partition ' => 'p ' ]);
@@ -490,7 +490,7 @@ public function it_can_save_existing_instance()
490
490
];
491
491
492
492
$ connection = $ this ->newConnectionMock ();
493
- $ connection ->shouldReceive ('updateItem ' )->with ($ params )->andReturn ($ this ->sampleAwsResultEmpty ());
493
+ $ connection ->shouldReceive ('updateItem ' )->with ($ params )->andReturn ($ this ->sampleAwsResultEmpty ())-> once () ;
494
494
$ this ->setConnectionResolver ($ connection );
495
495
496
496
$ user = (new UserA )->newFromBuilder (['partition ' => 'p ' ]);
@@ -526,7 +526,7 @@ public function it_can_delete_existing_instance()
526
526
];
527
527
528
528
$ connection = $ this ->newConnectionMock ();
529
- $ connection ->shouldReceive ('deleteItem ' )->with ($ params );
529
+ $ connection ->shouldReceive ('deleteItem ' )->with ($ params )-> once () ;
530
530
$ this ->setConnectionResolver ($ connection );
531
531
532
532
$ user = (new UserA )->newFromBuilder (['partition ' => 'p ' ]);
@@ -575,7 +575,7 @@ public function it_can_call_allowed_builder_method()
575
575
'S ' => 'p '
576
576
]
577
577
]
578
- ]);
578
+ ])-> once () ;
579
579
$ this ->setConnectionResolver ($ connection );
580
580
581
581
UserA::putItem ([
0 commit comments