You are here

private function SimplenewsStatisticsTestCase::createAndPublishNewsletter in Simplenews Statistics 7

Same name and namespace in other branches
  1. 7.2 tests/simplenews_statistics.test \SimplenewsStatisticsTestCase::createAndPublishNewsletter()

Function that will create a newsletter in the default category and publish it

1 call to SimplenewsStatisticsTestCase::createAndPublishNewsletter()
SimplenewsStatisticsTestCase::createAndSendNewsletter in tests/simplenews_statistics.test
Function that will create a newsletter in the default category and send it

File

tests/simplenews_statistics.test, line 95
Simplenews Statistics test functions.

Class

SimplenewsStatisticsTestCase
@file Simplenews Statistics test functions.

Code

private function createAndPublishNewsletter() {
  $this
    ->createNewsletter();
  $node = node_load($this->newsletter_nid);
  $node->status = 1;
  node_save($node);
}