private function SimplenewsStatisticsTestCase::createAndSendNewsletter in Simplenews Statistics 7
Same name and namespace in other branches
- 7.2 tests/simplenews_statistics.test \SimplenewsStatisticsTestCase::createAndSendNewsletter()
Function that will create a newsletter in the default category and send it
3 calls to SimplenewsStatisticsTestCase::createAndSendNewsletter()
- SimplenewsStatisticsTestCase::testCallClickStatisticURLDirectlyAndCheckDatabaseClickRateUpdate in tests/
simplenews_statistics.test - Test Statistic Logic: Click Rate
- SimplenewsStatisticsTestCase::testCallOpenStatisticURLDirectlyAndCheckDatabaseOpenRateUpdate in tests/
simplenews_statistics.test - Test Statistic Logic: Open Rate
- SimplenewsStatisticsTestCase::testClickStatisticLinkRedirect in tests/
simplenews_statistics.test - Test Workflow: Redirected to correct page
File
- tests/
simplenews_statistics.test, line 106 - Simplenews Statistics test functions.
Class
- SimplenewsStatisticsTestCase
- @file Simplenews Statistics test functions.
Code
private function createAndSendNewsletter() {
$this
->createAndPublishNewsletter();
$node = node_load($this->newsletter_nid);
// Send the node.
simplenews_add_node_to_spool($node);
// Send mails.
simplenews_mail_spool();
}