We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ce8b3d commit c82ef36Copy full SHA for c82ef36
1 file changed
tests/Unit/UserModelTest.php
@@ -62,6 +62,21 @@ public function testInsertUserObject(): void
62
]);
63
}
64
65
+ /**
66
+ * @see https://github.com/codeigniter4/shield/issues/450
67
+ */
68
+ public function testSaveNewUserAndGetEmailIdentity(): void
69
+ {
70
+ $users = $this->createUserModel();
71
+ $user = $this->createNewUser();
72
+
73
+ $users->save($user);
74
75
+ $identity = $user->getEmailIdentity();
76
77
+ $this->assertSame('[email protected]', $identity->secret);
78
+ }
79
80
/**
81
* This test is not correct.
82
*
0 commit comments