You are here

public function MailhandlerTestCase::createTerm in Mailhandler 7.2

Create a taxonomy term.

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

File

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

Class

MailhandlerTestCase
Mailhandler test cases.

Code

public function createTerm($name) {
  $edit = array(
    'name' => $name,
  );
  $this
    ->drupalPost(MAILHANDLER_MENU_PREFIX . '/taxonomy/tags/add', $edit, t('Save'));
}