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 @@ -361,7 +361,7 @@ public function testUnset(): void
361
361
362
362
$ user1 ->unset ('note1 ' );
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 ));
@@ -370,15 +370,15 @@ public function testUnset(): void
370
370
$ user1 = User::find ($ user1 ->_id );
371
371
$ user2 = User::find ($ user2 ->_id );
372
372
373
- $ this ->assertObjectNotHasAttribute ( ' note1 ' , $ user1 );
373
+ $ this ->assertFalse ( isset ( $ user1-> note1 ) );
374
374
$ this ->assertTrue (isset ($ user1 ->note2 ));
375
375
$ this ->assertTrue (isset ($ user2 ->note1 ));
376
376
$ this ->assertTrue (isset ($ user2 ->note2 ));
377
377
378
378
$ user2 ->unset (['note1 ' , 'note2 ' ]);
379
379
380
- $ this ->assertObjectNotHasAttribute ( ' note1 ' , $ user2 );
381
- $ this ->assertObjectNotHasAttribute ( ' note2 ' , $ user2 );
380
+ $ this ->assertFalse ( isset ( $ user2-> note1 ) );
381
+ $ this ->assertFalse ( isset ( $ user2-> note2 ) );
382
382
}
383
383
384
384
public function testDates (): void
You can’t perform that action at this time.
0 commit comments