From 28b1cb04b619707f61e21cb2e6ab21d4bff0ae5f Mon Sep 17 00:00:00 2001 From: Thomas Bruederli <thomas@roundcube.net> Date: Mon, 11 May 2015 08:37:30 -0400 Subject: [PATCH] Add more utility functions to prepare the IMAP account used for testing --- tests/Selenium/Mail/List.php | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/tests/Selenium/Mail/List.php b/tests/Selenium/Mail/List.php index 9c1d4a8..88fdb25 100644 --- a/tests/Selenium/Mail/List.php +++ b/tests/Selenium/Mail/List.php @@ -2,6 +2,19 @@ class Selenium_Mail_List extends Selenium_Test { + protected function setUp() + { + parent::setUp(); + + bootstrap::init_imap(); + bootstrap::purge_mailbox('INBOX'); + + // import email messages + foreach (glob(TESTS_DIR . 'Selenium/data/mail/list_00.eml') as $f) { + bootstrap::import_message($f, 'INBOX'); + } + } + public function testList() { $this->go('mail'); -- Gitblit v1.9.1