File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public function testPersistIfEntityAlreadyManaged(): void
61
61
$ objectManagerProphecy ->persist ($ dummy )->shouldNotBeCalled ();
62
62
$ objectManagerProphecy ->flush ()->shouldBeCalled ();
63
63
$ objectManagerProphecy ->refresh ($ dummy )->shouldBeCalled ();
64
- $ objectManagerProphecy ->getClassMetadata (Dummy::class)->willReturn (null )->shouldBeCalled ();
64
+ $ objectManagerProphecy ->getClassMetadata (Dummy::class)->willReturn (new ClassMetadata (Dummy::class) )->shouldBeCalled ();
65
65
66
66
$ managerRegistryProphecy = $ this ->prophesize (ManagerRegistry::class);
67
67
$ managerRegistryProphecy ->getManagerForClass (Dummy::class)->willReturn ($ objectManagerProphecy ->reveal ())->shouldBeCalled ();
Original file line number Diff line number Diff line change 28
28
"api-platform/state" : " ^4.1.11" ,
29
29
"doctrine/collections" : " ^2.1" ,
30
30
"doctrine/common" : " ^3.2.2" ,
31
- "doctrine/persistence" : " ^3.2"
31
+ "doctrine/persistence" : " ^3.2 || ^4.0 "
32
32
},
33
33
"require-dev" : {
34
34
"doctrine/mongodb-odm" : " ^2.10" ,
You can’t perform that action at this time.
0 commit comments