@@ -67,7 +67,7 @@ public function testShouldUpdateModelAndSetIdToModelEvenIfModelNotHaveIdDefined(
6767 $ storage ->update ($ model );
6868
6969 $ this ->assertInstanceOf (stdClass::class, $ model );
70- $ this ->assertObjectHasAttribute ('notExistProperty ' , $ model );
70+ $ this ->assertObjectHasProperty ('notExistProperty ' , $ model );
7171 }
7272
7373 public function testShouldKeepIdTheSameOnSeveralUpdates ()
@@ -262,7 +262,7 @@ public function testShouldStoreInfoBetweenUpdateAndFindWithDefaultId()
262262 $ storage ->update ($ model );
263263
264264 //guard
265- $ this ->assertObjectHasAttribute ('payum_id ' , $ model );
265+ $ this ->assertObjectHasProperty ('payum_id ' , $ model );
266266 $ this ->assertNotEmpty ($ model ->payum_id );
267267
268268 $ foundModel = $ storage ->find ($ model ->payum_id );
@@ -271,7 +271,7 @@ public function testShouldStoreInfoBetweenUpdateAndFindWithDefaultId()
271271 $ this ->assertSame ($ expectedPrice , $ foundModel ->getPrice ());
272272 $ this ->assertSame ($ expectedCurrency , $ foundModel ->getCurrency ());
273273
274- $ this ->assertObjectHasAttribute ('payum_id ' , $ foundModel );
274+ $ this ->assertObjectHasProperty ('payum_id ' , $ foundModel );
275275 $ this ->assertNotEmpty ($ foundModel ->payum_id );
276276 }
277277
@@ -286,7 +286,7 @@ public function testShouldAllowDeleteModel()
286286 $ storage ->update ($ model );
287287
288288 //guard
289- $ this ->assertObjectHasAttribute ('payum_id ' , $ model );
289+ $ this ->assertObjectHasProperty ('payum_id ' , $ model );
290290 $ this ->assertNotEmpty ($ model ->payum_id );
291291
292292 $ storage ->delete ($ model );
0 commit comments