File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -352,7 +352,7 @@ public function testUnset()
352
352
353
353
$ user1 ->unset ('note1 ' );
354
354
355
- $ this ->assertObjectNotHasAttribute ( ' note1 ' , $ user1 );
355
+ $ this ->assertFalse ( isset ( $ user1-> note1 ) );
356
356
$ this ->assertTrue (isset ($ user1 ->note2 ));
357
357
$ this ->assertTrue (isset ($ user2 ->note1 ));
358
358
$ this ->assertTrue (isset ($ user2 ->note2 ));
@@ -361,15 +361,15 @@ public function testUnset()
361
361
$ user1 = User::find ($ user1 ->_id );
362
362
$ user2 = User::find ($ user2 ->_id );
363
363
364
- $ this ->assertObjectNotHasAttribute ( ' note1 ' , $ user1 );
364
+ $ this ->assertFalse ( isset ( $ user1-> note1 ) );
365
365
$ this ->assertTrue (isset ($ user1 ->note2 ));
366
366
$ this ->assertTrue (isset ($ user2 ->note1 ));
367
367
$ this ->assertTrue (isset ($ user2 ->note2 ));
368
368
369
369
$ user2 ->unset (['note1 ' , 'note2 ' ]);
370
370
371
- $ this ->assertObjectNotHasAttribute ( ' note1 ' , $ user2 );
372
- $ this ->assertObjectNotHasAttribute ( ' note2 ' , $ user2 );
371
+ $ this ->assertFalse ( isset ( $ user2-> note1 ) );
372
+ $ this ->assertFalse ( isset ( $ user2-> note2 ) );
373
373
}
374
374
375
375
public function testDates ()
You can’t perform that action at this time.
0 commit comments