We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f94cd2d commit f4daf26Copy full SHA for f4daf26
tests/Unit/UserTest.php
@@ -230,4 +230,16 @@ public function testCreateEmailIdentity(): void
230
$identity = $this->user->getEmailIdentity();
231
$this->assertSame('foo@example.com', $identity->secret);
232
}
233
+
234
+ public function testSaveEmailIdentity(): void
235
+ {
236
+ $hash = service('passwords')->hash('passbar');
237
+ $this->user->email = 'foo@example.com';
238
+ $this->user->password_hash = $hash;
239
240
+ $this->user->saveEmailIdentity();
241
242
+ $identity = $this->user->getEmailIdentity();
243
+ $this->assertSame('foo@example.com', $identity->secret);
244
+ }
245
0 commit comments