public function CommentNotifyTestBase::getRandomEmailAddress in Comment Notify 8
Returns a randomly generated valid email address.
Return value
string A random email.
4 calls to CommentNotifyTestBase::getRandomEmailAddress()
- CommentNotifyAnonymousTest::testAnonymousAllCommentsTest in tests/
src/ Functional/ CommentNotifyAnonymousTest.php - Tests the "All comments" notification option used by an anonymous user.
- CommentNotifyAnonymousTest::testAnonymousRepliesTest in tests/
src/ Functional/ CommentNotifyAnonymousTest.php - Tests the "Replies to my comment" option used by anonymous user.
- CommentNotifyConfigPageTest::testUnsubscribePage in tests/
src/ Functional/ CommentNotifyConfigPageTest.php - Tests the Unsubscribe page.
- CommentNotifyNotificationsTest::testEntityNotification in tests/
src/ Functional/ CommentNotifyNotificationsTest.php - Tests that the notifications are working on a different entity than a node.
File
- tests/
src/ Functional/ CommentNotifyTestBase.php, line 162
Class
- CommentNotifyTestBase
- Comment notify Base Test class.
Namespace
Drupal\Tests\comment_notify\FunctionalCode
public function getRandomEmailAddress() {
return $this
->randomMachineName() . '@example.com';
}