Ejemplo n.º 1
0
 /**
  * @test
  */
 public function givenPortSettingIsRespected()
 {
     $this->subject->injectMailSettings(array('transport' => 'smtp', 'transport_smtp_server' => 'localhost:12345'));
     $this->subject->__construct();
     $port = $this->subject->getTransport()->getPort();
     $this->assertEquals(12345, $port);
 }
Ejemplo n.º 2
0
    /**
     * @test
     */
    public function providingCorrectClassnameDoesNotThrowException()
    {
        if (!class_exists('t3lib_mail_SwiftMailerFakeTransport')) {
            // Create fake custom transport class
            eval('class t3lib_mail_SwiftMailerFakeTransport extends \\TYPO3\\CMS\\Core\\Mail\\MboxTransport {
				public function __construct($settings) {}
			}');
        }
        $this->fixture->injectMailSettings(array('transport' => 't3lib_mail_SwiftMailerFakeTransport'));
        $this->fixture->__construct();
    }