@@ -31,6 +31,7 @@ public function test_response()
31
31
'name ' => 'Nuno Maduro ' ,
32
32
'family_name ' => 'Maduro ' ,
33
33
34
+ 'email_verified ' => true ,
34
35
]);
35
36
36
37
$ this ->assertInstanceOf (User::class, $ user );
@@ -47,6 +48,7 @@ public function test_response()
47
48
'first_name ' => 'Nuno ' ,
48
49
'last_name ' => 'Maduro ' ,
49
50
51
+ 'email_verified ' => true ,
50
52
'avatar ' => 'https://media.licdn.com/dms/image/D4D03AQmZFgJNqeNNk ' ,
51
53
'avatar_original ' => 'https://media.licdn.com/dms/image/D4D03AQmZFgJNqeNNk ' ,
52
54
], $ user ->attributes );
@@ -75,6 +77,7 @@ public function test_missing_email_and_avatar()
75
77
'first_name ' => 'Nuno ' ,
76
78
'last_name ' => 'Maduro ' ,
77
79
'email ' => null ,
80
+ 'email_verified ' => null ,
78
81
'avatar ' => null ,
79
82
'avatar_original ' => null ,
80
83
], $ user ->attributes );
@@ -105,7 +108,7 @@ protected function fromResponse(array $response): UserContract
105
108
'X-RestLi-Protocol-Version ' => '2.0.0 ' ,
106
109
],
107
110
RequestOptions::QUERY => [
108
- 'projection ' => '(sub,email,name,given_name,family_name,picture) ' ,
111
+ 'projection ' => '(sub,email,email_verified, name,given_name,family_name,picture) ' ,
109
112
],
110
113
])->andReturns ($ basicProfileResponse );
111
114
0 commit comments