File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -352,7 +352,7 @@ public function testUnset()
352352
353353 $ user1 ->unset ('note1 ' );
354354
355- $ this ->assertObjectNotHasAttribute ( ' note1 ' , $ user1 );
355+ $ this ->assertFalse ( isset ( $ user1-> note1 ) );
356356 $ this ->assertTrue (isset ($ user1 ->note2 ));
357357 $ this ->assertTrue (isset ($ user2 ->note1 ));
358358 $ this ->assertTrue (isset ($ user2 ->note2 ));
@@ -361,15 +361,15 @@ public function testUnset()
361361 $ user1 = User::find ($ user1 ->_id );
362362 $ user2 = User::find ($ user2 ->_id );
363363
364- $ this ->assertObjectNotHasAttribute ( ' note1 ' , $ user1 );
364+ $ this ->assertFalse ( isset ( $ user1-> note1 ) );
365365 $ this ->assertTrue (isset ($ user1 ->note2 ));
366366 $ this ->assertTrue (isset ($ user2 ->note1 ));
367367 $ this ->assertTrue (isset ($ user2 ->note2 ));
368368
369369 $ user2 ->unset (['note1 ' , 'note2 ' ]);
370370
371- $ this ->assertObjectNotHasAttribute ( ' note1 ' , $ user2 );
372- $ this ->assertObjectNotHasAttribute ( ' note2 ' , $ user2 );
371+ $ this ->assertFalse ( isset ( $ user2-> note1 ) );
372+ $ this ->assertFalse ( isset ( $ user2-> note2 ) );
373373 }
374374
375375 public function testDates ()
You can’t perform that action at this time.
0 commit comments