You are here

public function MailhandlerTestCase::createMailboxes in Mailhandler 6.2

Same name and namespace in other branches
  1. 7.2 tests/mailhandler.test \MailhandlerTestCase::createMailboxes()
1 call to MailhandlerTestCase::createMailboxes()
MailhandlerTestCase::testMailhandlerImport in tests/mailhandler.test

File

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

Class

MailhandlerTestCase
@file Tests for Mailhandler modules.

Code

public function createMailboxes() {
  $dir = file_directory_temp() . '/mailhandler_test';
  $files = scandir($dir);
  $files = array_diff($files, array(
    '..',
    '.',
  ));
  foreach ($files as $mailbox) {
    $this
      ->createMailbox($mailbox);
  }
}