function ServicesResourceUsertests::testResendWelcomeEmail in Services 7.3
Test password_reset method.
File
- tests/
functional/ ServicesResourceUserTests.test, line 380 - Call the endpoint tests when no authentication is being used.
Class
- ServicesResourceUsertests
- Run test cases for the endpoint with no authentication turned on.
Code
function testResendWelcomeEmail() {
// Create user.
$account = $this
->drupalCreateUser(array(
'administer services',
));
// Password Reset user.
$response = $this
->servicesPost($this->endpoint->path . '/user/' . $account->uid . '/resend_welcome_email');
$this
->assertTrue($response['body'], 'Resource has to resent a users welcome email has been called successfully.', 'UserResource: resend_welcome_email');
// Not sure how to test mail actually sent.
}