Skip to content

Commit

Permalink
Add default value for test mailbox names
Browse files Browse the repository at this point in the history
Try to ensure the mailbox name will never be confused with existing
mailboxes.
  • Loading branch information
slusarz committed Dec 31, 2014
1 parent 6d77371 commit d8e8ddd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 8 additions & 4 deletions framework/Imap_Client/test/Horde/Imap/Client/Live/Imap.php
Expand Up @@ -28,16 +28,20 @@ class Horde_Imap_Client_Live_Imap extends Horde_Imap_Client_Live_Base
public static $config;

private static $created;
private static $test_mbox;
private static $test_mbox_utf8;
private static $test_mbox = '_____TestMailboxTest';
private static $test_mbox_utf8 = '_____TestMailboxTest1è';

public static function setUpBeforeClass()
{
$c = array_shift(self::$config);

self::$created = false;
self::$test_mbox = $c['test_mbox'];
self::$test_mbox_utf8 = $c['test_mbox_utf8'];
if (isset($c['test_mbox'])) {
self::$test_mbox = $c['test_mbox'];
}
if (isset($c['test_mbox_utf8'])) {
self::$test_mbox_utf8 = $c['test_mbox_utf8'];
}

try {
$c['client_config']['cache'] = array(
Expand Down
2 changes: 0 additions & 2 deletions framework/Imap_Client/test/Horde/Imap/Client/conf.php.dist
Expand Up @@ -15,8 +15,6 @@ $conf['imapclient'] = array(
// Test for XOAUTH2
//'xoauth2_token' => ''
),
'test_mbox' => 'TestMailboxTest',
'test_mbox_utf8' => 'TestMailboxTest1è',

// Configuration for the Mongo cache driver test.
// Format: mongodb://[username:password@]host
Expand Down

0 comments on commit d8e8ddd

Please sign in to comment.