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
6161 $ objectManagerProphecy ->persist ($ dummy )->shouldNotBeCalled ();
6262 $ objectManagerProphecy ->flush ()->shouldBeCalled ();
6363 $ objectManagerProphecy ->refresh ($ dummy )->shouldBeCalled ();
64- $ objectManagerProphecy ->getClassMetadata (Dummy::class)->willReturn (null )->shouldBeCalled ();
64+ $ objectManagerProphecy ->getClassMetadata (Dummy::class)->willReturn (new ClassMetadata (Dummy::class) )->shouldBeCalled ();
6565
6666 $ managerRegistryProphecy = $ this ->prophesize (ManagerRegistry::class);
6767 $ managerRegistryProphecy ->getManagerForClass (Dummy::class)->willReturn ($ objectManagerProphecy ->reveal ())->shouldBeCalled ();
Original file line number Diff line number Diff line change 2828 "api-platform/state" : " ^4.1.11" ,
2929 "doctrine/collections" : " ^2.1" ,
3030 "doctrine/common" : " ^3.2.2" ,
31- "doctrine/persistence" : " ^3.2"
31+ "doctrine/persistence" : " ^3.2 || ^4.0 "
3232 },
3333 "require-dev" : {
3434 "doctrine/mongodb-odm" : " ^2.10" ,
You can’t perform that action at this time.
0 commit comments