File tree Expand file tree Collapse file tree 4 files changed +26
-6
lines changed Expand file tree Collapse file tree 4 files changed +26
-6
lines changed Original file line number Diff line number Diff line change 1+ <?php 
2+ 
3+ declare (strict_types=1 );
4+ 
5+ use  App \Models \AuthenticationLog ;
6+ 
7+ test ('to array ' , function  () {
8+     $ authenticationLogfactory ()->create ()->fresh ();
9+ 
10+     expect (array_keys ($ authenticationLogtoArray ()))
11+         ->toBe ([
12+             'id ' ,
13+             'user_id ' ,
14+             'ip_address ' ,
15+             'user_agent ' ,
16+             'successful ' ,
17+             'created_at ' ,
18+             'updated_at ' ,
19+         ]);
20+ });
Original file line number Diff line number Diff line change 55use  App \Models \Ip ;
66
77test ('to array ' , function  () {
8-     $ user factory ()->create ()->fresh ();
8+     $ ip factory ()->create ()->fresh ();
99
10-     expect (array_keys ($ user toArray ()))
10+     expect (array_keys ($ ip toArray ()))
1111        ->toBe ([
1212            'id ' ,
1313            'address ' ,
Original file line number Diff line number Diff line change 55use  App \Models \RequestLog ;
66
77test ('to array ' , function  () {
8-     $ user factory ()->create ()->fresh ();
8+     $ requestLog factory ()->create ()->fresh ();
99
10-     expect (array_keys ($ user toArray ()))
10+     expect (array_keys ($ requestLog toArray ()))
1111        ->toBe ([
1212            'id ' ,
1313            'uuid ' ,
Original file line number Diff line number Diff line change 1515            'nickname ' ,
1616            'role ' ,
1717            'mobile ' ,
18-             'mobile_verified_at ' ,
1918            'email ' ,
20-             'email_verified_at ' ,
2119            'timezone ' ,
2220            'status ' ,
21+             'mobile_verified_at ' ,
22+             'email_verified_at ' ,
2323            'created_at ' ,
2424            'updated_at ' ,
2525            'deleted_at ' ,
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments