@@ -99,10 +99,18 @@ public function testPostPersist_WithPage()
9999 ->disableOriginalConstructor ()
100100 ->getMock ();
101101
102- $ em ->expects ($ this ->oncde ())
102+ $ em ->expects ($ this ->once ())
103103 ->method ('getUnitOfWork ' )
104104 ->will ($ this ->returnValue ($ uow ));
105105
106+ $ classMetaData = $ this ->getMockBuilder ('\Doctrine\ORM\Mapping\ClassMetadata ' )
107+ ->disableOriginalConstructor ()
108+ ->getMock ();
109+
110+ $ em ->expects ($ this ->once ())
111+ ->method ('getClassMetadata ' )
112+ ->will ($ this ->returnValue ($ classMetaData ));
113+
106114
107115 $ em ->expects ($ this ->once ())
108116 ->method ('persist ' );
@@ -204,7 +212,7 @@ public function testPostUpdate_WithPage(){
204212 ->disableOriginalConstructor ()
205213 ->getMock ();
206214
207- $ em ->expects ($ this ->oncde ())
215+ $ em ->expects ($ this ->once ())
208216 ->method ('getUnitOfWork ' )
209217 ->will ($ this ->returnValue ($ uow ));
210218
@@ -261,7 +269,7 @@ public function testPostUpdate_WithPageAndTenChildren(){
261269 ->disableOriginalConstructor ()
262270 ->getMock ();
263271
264- $ em ->expects ($ this ->oncde ())
272+ $ em ->expects ($ this ->once ())
265273 ->method ('getUnitOfWork ' )
266274 ->will ($ this ->returnValue ($ uow ));
267275
0 commit comments