File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
tests/Integration/Domain/Repository Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -283,8 +283,7 @@ public function removeAlsoRemovesAssociatedSubscriptions()
283
283
$ numberOfAssociatedSubscriptions = count ($ model ->getSubscriptions ());
284
284
static ::assertGreaterThan (0 , $ numberOfAssociatedSubscriptions );
285
285
286
- $ this ->entityManager ->remove ($ model );
287
- $ this ->entityManager ->flush ();
286
+ $ this ->subject ->remove ($ model );
288
287
289
288
$ newNumberOfSubscriptions = count ($ this ->subscriptionRepository ->findAll ());
290
289
$ numberOfRemovedSubscriptions = $ initialNumberOfSubscriptions - $ newNumberOfSubscriptions ;
Original file line number Diff line number Diff line change @@ -288,8 +288,7 @@ public function removeAlsoRemovesAssociatedSubscriptions()
288
288
$ numberOfAssociatedSubscriptions = count ($ model ->getSubscriptions ());
289
289
static ::assertGreaterThan (0 , $ numberOfAssociatedSubscriptions );
290
290
291
- $ this ->entityManager ->remove ($ model );
292
- $ this ->entityManager ->flush ();
291
+ $ this ->subject ->remove ($ model );
293
292
294
293
$ newNumberOfSubscriptions = count ($ this ->subscriptionRepository ->findAll ());
295
294
$ numberOfRemovedSubscriptions = $ initialNumberOfSubscriptions - $ newNumberOfSubscriptions ;
You can’t perform that action at this time.
0 commit comments