0009932: Parametrize references to e-mail application
[tine20] / tests / tine20 / Tinebase / EmailUser / FactoryTest.php
1 <?php
2 /**
3  * Tine 2.0 - http://www.tine20.org
4  *
5  * @package     Tinebase
6  * @subpackage  EmailUser
7  * @license     http://www.gnu.org/licenses/agpl.html
8  * @copyright   Copyright (c) 2015-2015 Metaways Infosystems GmbH (http://www.metaways.de)
9  * @author      Lars Kneschke <l.kneschke@metaways.de>
10  */
11
12 /**
13  * Test class for Tinebase_EmailUser_Factory
14  * 
15  * @package     Tinebase
16  * @subpackage  EmailUser
17  */
18 class Tinebase_EmailUser_FactoryTest extends TestCase
19 {
20     /**
21      * 
22      */
23     public function testGetMailApplicationName()
24     {
25         $name = Tinebase_EmailUser_Factory::getMailApplicationName();
26         
27         $this->assertNotEmpty($name);
28     }
29     
30     /**
31      * 
32      */
33     public function testGetInstance()
34     {
35         $instance = Tinebase_EmailUser_Factory::getInstance('Controller_Message');
36         
37         $this->assertInstanceOf('Tinebase_Controller_Record_Abstract', $instance);
38     }
39 }