Alternc  latest
Alternc logiel libre pour l'h├ębergement
 All Classes Namespaces Files Functions Variables Pages
m_mailTest Class Reference

Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2014-03-13 at 15:55:58. More...

+ Inheritance diagram for m_mailTest:

Public Member Functions

 getDataSet ()
 
 testHook_menu ()
 m_mail::hook_menu More...
 
 testGet_total_size_for_domain ()
 m_mail::get_total_size_for_domain More...
 
 testCatchall_getinfos ()
 m_mail::catchall_getinfos More...
 
 testCatchall_del ()
 m_mail::catchall_del More...
 
 testCatchall_set ()
 m_mail::catchall_set More...
 
 testHook_quota_get ()
 m_mail::hook_quota_get More...
 
 testAlternc_password_policy ()
 m_mail::alternc_password_policy More...
 
 testEnum_domains ()
 m_mail::enum_domains More...
 
 testAvailable ()
 m_mail::available More...
 
 testEnum_domain_mails ()
 m_mail::enum_domain_mails More...
 
 testHook_mail_get_details ()
 m_mail::hook_mail_get_details More...
 
 testCreate ()
 m_mail::create More...
 
 testGet_details ()
 m_mail::get_details More...
 
 testIs_it_my_mail ()
 m_mail::is_it_my_mail More...
 
 testHook_dom_del_mx_domain ()
 m_mail::hook_dom_del_mx_domain More...
 
 testGet_account_by_mail_id ()
 m_mail::get_account_by_mail_id More...
 
 testDelete ()
 m_mail::delete More...
 
 testUndelete ()
 m_mail::undelete More...
 
 testSet_passwd ()
 m_mail::set_passwd More...
 
 testEnable ()
 m_mail::enable More...
 
 testDisable ()
 m_mail::disable More...
 
 testSet_details ()
 m_mail::set_details More...
 
 testAdd_wrapper ()
 m_mail::add_wrapper More...
 
 testCreate_alias ()
 m_mail::create_alias More...
 
 testDel_wrapper ()
 m_mail::del_wrapper More...
 
 testAlternc_export_conf ()
 m_mail::alternc_export_conf More...
 
 testEnum_slave_account ()
 m_mail::enum_slave_account More...
 
 testCheck_slave_account ()
 m_mail::check_slave_account More...
 
 testEcho_domain_list ()
 m_mail::echo_domain_list More...
 
 testAdd_slave_account ()
 m_mail::add_slave_account More...
 
 testDel_slave_account ()
 m_mail::del_slave_account More...
 
 testHook_dom_add_slave_domain ()
 m_mail::hook_dom_add_slave_domain More...
 
 testHook_dom_add_mx_domain ()
 m_mail::hook_dom_add_mx_domain More...
 
 getConnection ()
 
 loadDataSet ($fileList)
 

Protected Member Functions

 setUp ()
 Sets up the fixture, for example, opens a network connection. More...
 
 tearDown ()
 Tears down the fixture, for example, closes a network connection. More...
 

Protected Attributes

 $object
 

Detailed Description

Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2014-03-13 at 15:55:58.

Definition at line 5 of file m_mailTest.php.

Member Function Documentation

AlterncTest::getConnection ( )
inherited
Returns
PHPUnit_Extensions_Database_DB_IDatabaseConnection

Definition at line 11 of file AlterncTest.php.

References $database, $password, and $user.

Referenced by m_actionTest\testArchive(), m_actionTest\testCancel(), m_actionTest\testChmod(), m_actionTest\testCreate_dir(), m_actionTest\testCreate_file(), m_actionTest\testDel(), m_variablesTest\testDel(), m_actionTest\testFinish(), m_actionTest\testFix_dir(), m_actionTest\testFix_file(), m_actionTest\testFix_user(), m_actionTest\testMove(), m_actionTest\testPurge(), m_actionTest\testReset_job(), m_actionTest\testSet(), m_variablesTest\testVariable_create(), and m_variablesTest\testVariable_update().

12  {
13  global $database,$user,$password;
14  $pdo = new PDO('mysql:dbname='.$database.';host=127.0.0.1',$user,$password);
15  return $this->createDefaultDBConnection($pdo);
16  }
$user
Definition: bootstrap.php:84
foreach(array(ALTERNC_MAIL, ALTERNC_HTML, ALTERNC_LOGS) as $crdir) $database
Definition: bootstrap.php:83
$password
Definition: bootstrap.php:85
m_mailTest::getDataSet ( )
Returns
PHPUnit_Extensions_Database_DataSet_IDataSet

Definition at line 25 of file m_mailTest.php.

26  {
27  return parent::loadDataSet("domaines.yml");
28  }
AlterncTest::loadDataSet (   $fileList)
inherited
Parameters
string$fileList
Returns
Exceptions
Exception

Definition at line 24 of file AlterncTest.php.

References PHPUNIT_DATASETS_PATH.

Referenced by m_actionTest\testPurge(), and m_variablesTest\testVariable_update().

25  {
26  if (empty($fileList)) {
27  throw new \Exception("No files specified");
28  }
29  if( !is_array($fileList)){
30  $fileList = array($fileList);
31  }
32  $datasetList = array();
33  foreach ($fileList as $file_name) {
34  $file = PHPUNIT_DATASETS_PATH."/$file_name";
35  if( !is_file($file) ){
36  throw new \Exception("missing $file");
37  }
38  $dataSet = new PHPUnit_Extensions_Database_DataSet_YamlDataSet($file);
39  $datasetList[] = $dataSet;
40  }
41  $compositeDataSet = new PHPUnit_Extensions_Database_DataSet_CompositeDataSet($datasetList);
42  return $dataSet;
43  }
const PHPUNIT_DATASETS_PATH
Definition: bootstrap.php:20
m_mailTest::setUp ( )
protected

Sets up the fixture, for example, opens a network connection.

This method is called before a test is executed.

Definition at line 16 of file m_mailTest.php.

17  {
18  parent::setUp();
19  $this->object = new m_mail;
20  }
This class handle emails (pop and/or aliases and even wrapper for internal classes) of hosted users...
Definition: m_mail.php:32
m_mailTest::tearDown ( )
protected

Tears down the fixture, for example, closes a network connection.

This method is called after a test is executed.

Definition at line 35 of file m_mailTest.php.

36  {
37  parent::tearDown();
38  }
m_mailTest::testAdd_slave_account ( )

m_mail::add_slave_account

Todo:
Implement testAdd_slave_account().

Definition at line 389 of file m_mailTest.php.

390  {
391  // Remove the following lines when you implement this test.
392  $this->markTestIncomplete(
393  'This test has not been implemented yet.'
394  );
395  }
m_mailTest::testAdd_wrapper ( )

m_mail::add_wrapper

Todo:
Implement testAdd_wrapper().

Definition at line 308 of file m_mailTest.php.

309  {
310  // Remove the following lines when you implement this test.
311  $this->markTestIncomplete(
312  'This test has not been implemented yet.'
313  );
314  }
m_mailTest::testAlternc_export_conf ( )

m_mail::alternc_export_conf

Todo:
Implement testAlternc_export_conf().

Definition at line 341 of file m_mailTest.php.

342  {
343  // Remove the following lines when you implement this test.
344  $this->markTestIncomplete(
345  'This test has not been implemented yet.'
346  );
347  }
m_mailTest::testAlternc_password_policy ( )

m_mail::alternc_password_policy

Todo:
Implement testAlternc_password_policy().

Definition at line 116 of file m_mailTest.php.

117  {
118  // Remove the following lines when you implement this test.
119  $this->markTestIncomplete(
120  'This test has not been implemented yet.'
121  );
122  }
m_mailTest::testAvailable ( )

m_mail::available

Todo:
Implement testAvailable().

Definition at line 140 of file m_mailTest.php.

141  {
142  // Remove the following lines when you implement this test.
143  $this->markTestIncomplete(
144  'This test has not been implemented yet.'
145  );
146  }
m_mailTest::testCatchall_del ( )

m_mail::catchall_del

Todo:
Implement testCatchall_del().

Definition at line 80 of file m_mailTest.php.

81  {
82  // Remove the following lines when you implement this test.
83  $this->markTestIncomplete(
84  'This test has not been implemented yet.'
85  );
86  }
m_mailTest::testCatchall_getinfos ( )

m_mail::catchall_getinfos

Todo:
Implement testCatchall_getinfos().

Definition at line 68 of file m_mailTest.php.

69  {
70  // Remove the following lines when you implement this test.
71  $this->markTestIncomplete(
72  'This test has not been implemented yet.'
73  );
74  }
m_mailTest::testCatchall_set ( )

m_mail::catchall_set

Todo:
Implement testCatchall_set().

Definition at line 92 of file m_mailTest.php.

93  {
94  // Remove the following lines when you implement this test.
95  $this->markTestIncomplete(
96  'This test has not been implemented yet.'
97  );
98  }
m_mailTest::testCheck_slave_account ( )

m_mail::check_slave_account

Todo:
Implement testCheck_slave_account().

Definition at line 365 of file m_mailTest.php.

366  {
367  // Remove the following lines when you implement this test.
368  $this->markTestIncomplete(
369  'This test has not been implemented yet.'
370  );
371  }
m_mailTest::testCreate ( )

m_mail::create

Todo:
Implement testCreate().

Definition at line 176 of file m_mailTest.php.

177  {
178  // Remove the following lines when you implement this test.
179  $this->markTestIncomplete(
180  'This test has not been implemented yet.'
181  );
182  }
m_mailTest::testCreate_alias ( )

m_mail::create_alias

Todo:
Implement testCreate_alias().

Definition at line 320 of file m_mailTest.php.

321  {
322  // Test #1580
323  }
m_mailTest::testDel_slave_account ( )

m_mail::del_slave_account

Todo:
Implement testDel_slave_account().

Definition at line 401 of file m_mailTest.php.

402  {
403  // Remove the following lines when you implement this test.
404  $this->markTestIncomplete(
405  'This test has not been implemented yet.'
406  );
407  }
m_mailTest::testDel_wrapper ( )

m_mail::del_wrapper

Todo:
Implement testDel_wrapper().

Definition at line 329 of file m_mailTest.php.

330  {
331  // Remove the following lines when you implement this test.
332  $this->markTestIncomplete(
333  'This test has not been implemented yet.'
334  );
335  }
m_mailTest::testDelete ( )

m_mail::delete

Todo:
Implement testDelete().

Definition at line 236 of file m_mailTest.php.

237  {
238  // Remove the following lines when you implement this test.
239  $this->markTestIncomplete(
240  'This test has not been implemented yet.'
241  );
242  }
m_mailTest::testDisable ( )

m_mail::disable

Todo:
Implement testDisable().

Definition at line 284 of file m_mailTest.php.

285  {
286  // Remove the following lines when you implement this test.
287  $this->markTestIncomplete(
288  'This test has not been implemented yet.'
289  );
290  }
m_mailTest::testEcho_domain_list ( )

m_mail::echo_domain_list

Todo:
Implement testEcho_domain_list().

Definition at line 377 of file m_mailTest.php.

378  {
379  // Remove the following lines when you implement this test.
380  $this->markTestIncomplete(
381  'This test has not been implemented yet.'
382  );
383  }
m_mailTest::testEnable ( )

m_mail::enable

Todo:
Implement testEnable().

Definition at line 272 of file m_mailTest.php.

273  {
274  // Remove the following lines when you implement this test.
275  $this->markTestIncomplete(
276  'This test has not been implemented yet.'
277  );
278  }
m_mailTest::testEnum_domain_mails ( )

m_mail::enum_domain_mails

Todo:
Implement testEnum_domain_mails().

Definition at line 152 of file m_mailTest.php.

153  {
154  // Remove the following lines when you implement this test.
155  $this->markTestIncomplete(
156  'This test has not been implemented yet.'
157  );
158  }
m_mailTest::testEnum_domains ( )

m_mail::enum_domains

Todo:
Implement testEnum_domains().

Definition at line 128 of file m_mailTest.php.

129  {
130  // Remove the following lines when you implement this test.
131  $this->markTestIncomplete(
132  'This test has not been implemented yet.'
133  );
134  }
m_mailTest::testEnum_slave_account ( )

m_mail::enum_slave_account

Todo:
Implement testEnum_slave_account().

Definition at line 353 of file m_mailTest.php.

354  {
355  // Remove the following lines when you implement this test.
356  $this->markTestIncomplete(
357  'This test has not been implemented yet.'
358  );
359  }
m_mailTest::testGet_account_by_mail_id ( )

m_mail::get_account_by_mail_id

Todo:
Implement testGet_account_by_mail_id().

Definition at line 224 of file m_mailTest.php.

225  {
226  // Remove the following lines when you implement this test.
227  $this->markTestIncomplete(
228  'This test has not been implemented yet.'
229  );
230  }
m_mailTest::testGet_details ( )

m_mail::get_details

Todo:
Implement testGet_details().

Definition at line 188 of file m_mailTest.php.

189  {
190  // Remove the following lines when you implement this test.
191  $this->markTestIncomplete(
192  'This test has not been implemented yet.'
193  );
194  }
m_mailTest::testGet_total_size_for_domain ( )

m_mail::get_total_size_for_domain

Todo:
Implement testGet_total_size_for_domain().

Definition at line 56 of file m_mailTest.php.

57  {
58  // Remove the following lines when you implement this test.
59  $this->markTestIncomplete(
60  'This test has not been implemented yet.'
61  );
62  }
m_mailTest::testHook_dom_add_mx_domain ( )

m_mail::hook_dom_add_mx_domain

Todo:
Implement testHook_dom_add_mx_domain().

Definition at line 425 of file m_mailTest.php.

426  {
427  // Remove the following lines when you implement this test.
428  $this->markTestIncomplete(
429  'This test has not been implemented yet.'
430  );
431  }
m_mailTest::testHook_dom_add_slave_domain ( )

m_mail::hook_dom_add_slave_domain

Todo:
Implement testHook_dom_add_slave_domain().

Definition at line 413 of file m_mailTest.php.

414  {
415  // Remove the following lines when you implement this test.
416  $this->markTestIncomplete(
417  'This test has not been implemented yet.'
418  );
419  }
m_mailTest::testHook_dom_del_mx_domain ( )

m_mail::hook_dom_del_mx_domain

Todo:
Implement testHook_dom_del_mx_domain().

Definition at line 212 of file m_mailTest.php.

213  {
214  // Remove the following lines when you implement this test.
215  $this->markTestIncomplete(
216  'This test has not been implemented yet.'
217  );
218  }
m_mailTest::testHook_mail_get_details ( )

m_mail::hook_mail_get_details

Todo:
Implement testHook_mail_get_details().

Definition at line 164 of file m_mailTest.php.

165  {
166  // Remove the following lines when you implement this test.
167  $this->markTestIncomplete(
168  'This test has not been implemented yet.'
169  );
170  }
m_mailTest::testHook_menu ( )

m_mail::hook_menu

Todo:
Implement testHook_menu().

Definition at line 44 of file m_mailTest.php.

45  {
46  // Remove the following lines when you implement this test.
47  $this->markTestIncomplete(
48  'This test has not been implemented yet.'
49  );
50  }
m_mailTest::testHook_quota_get ( )

m_mail::hook_quota_get

Todo:
Implement testHook_quota_get().

Definition at line 104 of file m_mailTest.php.

105  {
106  // Remove the following lines when you implement this test.
107  $this->markTestIncomplete(
108  'This test has not been implemented yet.'
109  );
110  }
m_mailTest::testIs_it_my_mail ( )

m_mail::is_it_my_mail

Todo:
Implement testIs_it_my_mail().

Definition at line 200 of file m_mailTest.php.

201  {
202  // Remove the following lines when you implement this test.
203  $this->markTestIncomplete(
204  'This test has not been implemented yet.'
205  );
206  }
m_mailTest::testSet_details ( )

m_mail::set_details

Todo:
Implement testSet_details().

Definition at line 296 of file m_mailTest.php.

297  {
298  // Remove the following lines when you implement this test.
299  $this->markTestIncomplete(
300  'This test has not been implemented yet.'
301  );
302  }
m_mailTest::testSet_passwd ( )

m_mail::set_passwd

Todo:
Implement testSet_passwd().

Definition at line 260 of file m_mailTest.php.

261  {
262  // Remove the following lines when you implement this test.
263  $this->markTestIncomplete(
264  'This test has not been implemented yet.'
265  );
266  }
m_mailTest::testUndelete ( )

m_mail::undelete

Todo:
Implement testUndelete().

Definition at line 248 of file m_mailTest.php.

249  {
250  // Remove the following lines when you implement this test.
251  $this->markTestIncomplete(
252  'This test has not been implemented yet.'
253  );
254  }

Member Data Documentation

m_mailTest::$object
protected

Definition at line 10 of file m_mailTest.php.


The documentation for this class was generated from the following file: