You are here

public function MailhandlerTestCase::createMapping in Mailhandler 7.2

Same name and namespace in other branches
  1. 6.2 tests/mailhandler.test \MailhandlerTestCase::createMapping()

Create mapping in feeds processor.

1 call to MailhandlerTestCase::createMapping()
MailhandlerTestCase::testMailhandlerImport in tests/mailhandler.test
Test case.

File

tests/mailhandler.test, line 99
Tests for Mailhandler modules.

Class

MailhandlerTestCase
Mailhandler test cases.

Code

public function createMapping($source, $target) {
  $edit = array();
  $edit['source'] = $source;
  $edit['target'] = $target;
  $this
    ->drupalPost(MAILHANDLER_MENU_PREFIX . '/feeds/mailhandler_nodes/mapping', $edit, t('Save'));
}