File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed
tests/Integration/Repository Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -325,12 +325,18 @@ public function testThatFindMethodCallsExpectedEntityManagerMethod(): void
325
325
ApiKeyEntity::class,
326
326
'id ' ,
327
327
null ,
328
- null
328
+ null ,
329
329
);
330
330
331
+ $ entityManager
332
+ ->expects ($ this ->once ())
333
+ ->method ('isOpen ' )
334
+ ->willReturn (true );
335
+
331
336
$ managerObject
332
337
->expects ($ this ->once ())
333
338
->method ('getManagerForClass ' )
339
+ ->with (ApiKeyEntity::class)
334
340
->willReturn ($ entityManager );
335
341
336
342
$ repository = new ApiKeyRepository ($ managerObject );
@@ -370,6 +376,11 @@ public function testThatFindOneByMethodCallsExpectedEntityManagerMethod(): void
370
376
->with (ApiKeyEntity::class)
371
377
->willReturn ($ repositoryMock );
372
378
379
+ $ entityManager
380
+ ->expects ($ this ->once ())
381
+ ->method ('isOpen ' )
382
+ ->willReturn (true );
383
+
373
384
$ managerObject
374
385
->expects ($ this ->once ())
375
386
->method ('getManagerForClass ' )
@@ -419,6 +430,11 @@ public function testThatFindByMethodCallsExpectedEntityManagerMethod(): void
419
430
->with (ApiKeyEntity::class)
420
431
->willReturn ($ repositoryMock );
421
432
433
+ $ entityManager
434
+ ->expects ($ this ->once ())
435
+ ->method ('isOpen ' )
436
+ ->willReturn (true );
437
+
422
438
$ managerObject
423
439
->expects ($ this ->once ())
424
440
->method ('getManagerForClass ' )
@@ -456,6 +472,11 @@ public function testThatFindAllMethodCallsExpectedEntityManagerMethod(): void
456
472
->with (ApiKeyEntity::class)
457
473
->willReturn ($ repositoryMock );
458
474
475
+ $ entityManager
476
+ ->expects ($ this ->once ())
477
+ ->method ('isOpen ' )
478
+ ->willReturn (true );
479
+
459
480
$ managerObject
460
481
->expects ($ this ->once ())
461
482
->method ('getManagerForClass ' )
You can’t perform that action at this time.
0 commit comments