Alternc  latest
Alternc logiel libre pour l'hébergement
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 ()
 @covers m_mail::hook_menu More...
 
 testGet_total_size_for_domain ()
 @covers m_mail::get_total_size_for_domain More...
 
 testCatchall_getinfos ()
 @covers m_mail::catchall_getinfos More...
 
 testCatchall_del ()
 @covers m_mail::catchall_del More...
 
 testCatchall_set ()
 @covers m_mail::catchall_set More...
 
 testHook_quota_get ()
 @covers m_mail::hook_quota_get More...
 
 testAlternc_password_policy ()
 @covers m_mail::alternc_password_policy More...
 
 testEnum_domains ()
 @covers m_mail::enum_domains More...
 
 testAvailable ()
 @covers m_mail::available More...
 
 testEnum_domain_mails ()
 @covers m_mail::enum_domain_mails More...
 
 testHook_mail_get_details ()
 @covers m_mail::hook_mail_get_details More...
 
 testCreate ()
 @covers m_mail::create More...
 
 testGet_details ()
 @covers m_mail::get_details More...
 
 testIs_it_my_mail ()
 @covers m_mail::is_it_my_mail More...
 
 testHook_dom_del_mx_domain ()
 @covers m_mail::hook_dom_del_mx_domain More...
 
 testGet_account_by_mail_id ()
 @covers m_mail::get_account_by_mail_id More...
 
 testDelete ()
 @covers m_mail::delete More...
 
 testUndelete ()
 @covers m_mail::undelete More...
 
 testSet_passwd ()
 @covers m_mail::set_passwd More...
 
 testEnable ()
 @covers m_mail::enable More...
 
 testDisable ()
 @covers m_mail::disable More...
 
 testSet_details ()
 @covers m_mail::set_details More...
 
 testAdd_wrapper ()
 @covers m_mail::add_wrapper More...
 
 testCreate_alias ()
 @covers m_mail::create_alias More...
 
 testDel_wrapper ()
 @covers m_mail::del_wrapper More...
 
 testAlternc_export_conf ()
 @covers m_mail::alternc_export_conf More...
 
 testEnum_slave_account ()
 @covers m_mail::enum_slave_account More...
 
 testCheck_slave_account ()
 @covers m_mail::check_slave_account More...
 
 testEcho_domain_list ()
 @covers m_mail::echo_domain_list More...
 
 testAdd_slave_account ()
 @covers m_mail::add_slave_account More...
 
 testDel_slave_account ()
 @covers m_mail::del_slave_account More...
 
 testHook_dom_add_slave_domain ()
 @covers m_mail::hook_dom_add_slave_domain More...
 
 testHook_dom_add_mx_domain ()
 @covers 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

◆ getConnection()

AlterncTest::getConnection ( )
inherited
Returns
PHPUnit_Extensions_Database_DB_IDatabaseConnection

Definition at line 18 of file AlterncTest.php.

19  {
20  global $database,$user,$password;
21  $pdo = new PDO('mysql:dbname='.$database.';host=127.0.0.1',$user,$password);
22  return $this->createDefaultDBConnection($pdo);
23  }
foreach(array(ALTERNC_MAIL, ALTERNC_HTML, ALTERNC_LOGS) as $crdir) $database
Definition: bootstrap.php:83
$user
Definition: bootstrap.php:84
$password
Definition: bootstrap.php:85

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_actionTest\testFinish(), m_actionTest\testFix_dir(), m_actionTest\testFix_file(), m_actionTest\testFix_user(), m_actionTest\testMove(), m_actionTest\testPurge(), m_actionTest\testReset_job(), and m_actionTest\testSet().

◆ getDataSet()

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  }

◆ loadDataSet()

AlterncTest::loadDataSet (   $fileList)
inherited
Parameters
string$fileList
Returns
\PHPUnit_Extensions_Database_DataSet_YamlDataSet
Exceptions

Definition at line 31 of file AlterncTest.php.

32  {
33  if (empty($fileList)) {
34  throw new \Exception("No files specified");
35  }
36  if( !is_array($fileList)){
37  $fileList = array($fileList);
38  }
39  $datasetList = array();
40  foreach ($fileList as $file_name) {
41  $file = PHPUNIT_DATASETS_PATH."/$file_name";
42  if( !is_file($file) ){
43  throw new \Exception("missing $file");
44  }
45  $dataSet = new YamlDataSet($file);
46  $datasetList[] = $dataSet;
47  }
48  $compositeDataSet = new CompositeDataSet($datasetList);
49  return $dataSet;
50  }
const PHPUNIT_DATASETS_PATH
Definition: bootstrap.php:20

References PHPUNIT_DATASETS_PATH.

Referenced by m_actionTest\testPurge().

◆ setUp()

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

◆ tearDown()

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  }

◆ testAdd_slave_account()

m_mailTest::testAdd_slave_account ( )

@covers m_mail::add_slave_account

Todo:
Implement testAdd_slave_account().

Definition at line 392 of file m_mailTest.php.

393  {
394  // Remove the following lines when you implement this test.
395  $this->markTestIncomplete(
396  'This test has not been implemented yet.'
397  );
398  }

◆ testAdd_wrapper()

m_mailTest::testAdd_wrapper ( )

@covers 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  }

◆ testAlternc_export_conf()

m_mailTest::testAlternc_export_conf ( )

@covers m_mail::alternc_export_conf

Todo:
Implement testAlternc_export_conf().

Definition at line 344 of file m_mailTest.php.

345  {
346  // Remove the following lines when you implement this test.
347  $this->markTestIncomplete(
348  'This test has not been implemented yet.'
349  );
350  }

◆ testAlternc_password_policy()

m_mailTest::testAlternc_password_policy ( )

@covers 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  }

◆ testAvailable()

m_mailTest::testAvailable ( )

@covers 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  }

◆ testCatchall_del()

m_mailTest::testCatchall_del ( )

@covers 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  }

◆ testCatchall_getinfos()

m_mailTest::testCatchall_getinfos ( )

@covers 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  }

◆ testCatchall_set()

m_mailTest::testCatchall_set ( )

@covers 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  }

◆ testCheck_slave_account()

m_mailTest::testCheck_slave_account ( )

@covers m_mail::check_slave_account

Todo:
Implement testCheck_slave_account().

Definition at line 368 of file m_mailTest.php.

369  {
370  // Remove the following lines when you implement this test.
371  $this->markTestIncomplete(
372  'This test has not been implemented yet.'
373  );
374  }

◆ testCreate()

m_mailTest::testCreate ( )

@covers 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  }

◆ testCreate_alias()

m_mailTest::testCreate_alias ( )

@covers m_mail::create_alias

Todo:
Implement testCreate_alias().

Definition at line 320 of file m_mailTest.php.

321  {
322  // Test #1580
323  $this->markTestIncomplete(
324  'This test has not been implemented yet.'
325  );
326  }

◆ testDel_slave_account()

m_mailTest::testDel_slave_account ( )

@covers m_mail::del_slave_account

Todo:
Implement testDel_slave_account().

Definition at line 404 of file m_mailTest.php.

405  {
406  // Remove the following lines when you implement this test.
407  $this->markTestIncomplete(
408  'This test has not been implemented yet.'
409  );
410  }

◆ testDel_wrapper()

m_mailTest::testDel_wrapper ( )

@covers m_mail::del_wrapper

Todo:
Implement testDel_wrapper().

Definition at line 332 of file m_mailTest.php.

333  {
334  // Remove the following lines when you implement this test.
335  $this->markTestIncomplete(
336  'This test has not been implemented yet.'
337  );
338  }

◆ testDelete()

m_mailTest::testDelete ( )

@covers 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  }

◆ testDisable()

m_mailTest::testDisable ( )

@covers 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  }

◆ testEcho_domain_list()

m_mailTest::testEcho_domain_list ( )

@covers m_mail::echo_domain_list

Todo:
Implement testEcho_domain_list().

Definition at line 380 of file m_mailTest.php.

381  {
382  // Remove the following lines when you implement this test.
383  $this->markTestIncomplete(
384  'This test has not been implemented yet.'
385  );
386  }

◆ testEnable()

m_mailTest::testEnable ( )

@covers 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  }

◆ testEnum_domain_mails()

m_mailTest::testEnum_domain_mails ( )

@covers 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  }

◆ testEnum_domains()

m_mailTest::testEnum_domains ( )

@covers 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  }

◆ testEnum_slave_account()

m_mailTest::testEnum_slave_account ( )

@covers m_mail::enum_slave_account

Todo:
Implement testEnum_slave_account().

Definition at line 356 of file m_mailTest.php.

357  {
358  // Remove the following lines when you implement this test.
359  $this->markTestIncomplete(
360  'This test has not been implemented yet.'
361  );
362  }

◆ testGet_account_by_mail_id()

m_mailTest::testGet_account_by_mail_id ( )

@covers 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  }

◆ testGet_details()

m_mailTest::testGet_details ( )

@covers 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  }

◆ testGet_total_size_for_domain()

m_mailTest::testGet_total_size_for_domain ( )

@covers 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  }

◆ testHook_dom_add_mx_domain()

m_mailTest::testHook_dom_add_mx_domain ( )

@covers m_mail::hook_dom_add_mx_domain

Todo:
Implement testHook_dom_add_mx_domain().

Definition at line 428 of file m_mailTest.php.

429  {
430  // Remove the following lines when you implement this test.
431  $this->markTestIncomplete(
432  'This test has not been implemented yet.'
433  );
434  }

◆ testHook_dom_add_slave_domain()

m_mailTest::testHook_dom_add_slave_domain ( )

@covers m_mail::hook_dom_add_slave_domain

Todo:
Implement testHook_dom_add_slave_domain().

Definition at line 416 of file m_mailTest.php.

417  {
418  // Remove the following lines when you implement this test.
419  $this->markTestIncomplete(
420  'This test has not been implemented yet.'
421  );
422  }

◆ testHook_dom_del_mx_domain()

m_mailTest::testHook_dom_del_mx_domain ( )

@covers 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  }

◆ testHook_mail_get_details()

m_mailTest::testHook_mail_get_details ( )

@covers 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  }

◆ testHook_menu()

m_mailTest::testHook_menu ( )

@covers 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  }

◆ testHook_quota_get()

m_mailTest::testHook_quota_get ( )

@covers 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  }

◆ testIs_it_my_mail()

m_mailTest::testIs_it_my_mail ( )

@covers 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  }

◆ testSet_details()

m_mailTest::testSet_details ( )

@covers 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  }

◆ testSet_passwd()

m_mailTest::testSet_passwd ( )

@covers 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  }

◆ testUndelete()

m_mailTest::testUndelete ( )

@covers 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

◆ $object

m_mailTest::$object
protected

Definition at line 10 of file m_mailTest.php.


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