Skip to content

Commit 81ee4f0

Browse files
committed
Renaming UserMailer to UsersMailer
1 parent a549b81 commit 81ee4f0

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/Email/EmailSender.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class EmailSender
2424

2525
public function sendValidationEmail(EntityInterface $user, Email $email = null)
2626
{
27-
$this->getMailer('CakeDC/Users.User',
27+
$this->getMailer('CakeDC/Users.Users',
2828
$this->_getEmailInstance($email))->send('validation', [$user, __d('Users', 'Your account validation link')]
2929
);
3030
}
@@ -41,7 +41,7 @@ public function sendValidationEmail(EntityInterface $user, Email $email = null)
4141
*/
4242
public function sendResetPasswordEmail(EntityInterface $user, Email $email = null, $template = 'CakeDC/Users.reset_password')
4343
{
44-
$this->getMailer('CakeDC/Users.User',
44+
$this->getMailer('CakeDC/Users.Users',
4545
$this->_getEmailInstance($email))->send('resetPassword', [$user, $template]
4646
);
4747
}
@@ -61,7 +61,7 @@ public function sendSocialValidationEmail(EntityInterface $socialAccount, Entity
6161
} else {
6262
$template = $email->template()['template'];
6363
}
64-
$this->getMailer('CakeDC/Users.User',
64+
$this->getMailer('CakeDC/Users.Users',
6565
$this->_getEmailInstance($email))->send('socialAccountValidation', [$user, $socialAccount, $template]
6666
);
6767
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* User Mailer
1919
*
2020
*/
21-
class UserMailer extends Mailer
21+
class UsersMailer extends Mailer
2222
{
2323

2424
/**

tests/TestCase/Email/EmailSenderTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function testSendEmailValidation()
8686

8787
$this->EmailSender->expects($this->once())
8888
->method('getMailer')
89-
->with('CakeDC/Users.User')
89+
->with('CakeDC/Users.Users')
9090
->will($this->returnValue($this->UserMailer));
9191

9292
$this->UserMailer->expects($this->once())
@@ -119,7 +119,7 @@ public function testSendResetPasswordEmailMailer()
119119

120120
$this->EmailSender->expects($this->once())
121121
->method('getMailer')
122-
->with('CakeDC/Users.User')
122+
->with('CakeDC/Users.Users')
123123
->will($this->returnValue($this->UserMailer));
124124

125125
$this->UserMailer->expects($this->once())
@@ -147,7 +147,7 @@ public function testSendSocialValidationEmailMailer()
147147

148148
$this->EmailSender->expects($this->once())
149149
->method('getMailer')
150-
->with('CakeDC/Users.User')
150+
->with('CakeDC/Users.Users')
151151
->will($this->returnValue($this->UserMailer));
152152

153153
$this->UserMailer->expects($this->once())

0 commit comments

Comments
 (0)