You are here

function Faq_askMailchimpTestCase::testMailChimpModule in FAQ_Ask 7

The actual testing function

File

./faq_ask.test, line 1008
Test Faq_Ask functionality Base test class. All tests inherits this one Hugely based on code from the test file block.test by boombatower

Class

Faq_askMailchimpTestCase
Test class to verify the existence and the functionality of the Mailchimp integration @author sten

Code

function testMailChimpModule() {
  $this
    ->drupalLogin($this->admin_user);

  // Enable asker notification
  $this
    ->setFaqAskSettings(array(
    'faq_ask_asker_notify' => TRUE,
  ));

  // Verify Mailchimp module is detected and installed
  $this
    ->assertText('Select a newsletter you want anonymous askers to be assigned to.', t('Verified newsletter description visible'));

  // Post a question and verify Mailchimp module called.
}