Completed
Push — 2016.04 ( 06ede0...c73054 )
by Aimeos
07:29 queued 05:06
created

Typo3Test::tearDown()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 3
rs 10
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
5
 * @copyright Metaways Infosystems GmbH, 2013
6
 * @copyright Aimeos (aimeos.org), 2014
7
 */
8
9
10
namespace Aimeos\MW\Mail;
11
12
13
require_once __DIR__ . DIRECTORY_SEPARATOR . 'MailMessage';
14
15
16
class Typo3Test extends \PHPUnit_Framework_TestCase
17
{
18
	private $object;
19
	private $mock;
20
21
22
	protected function setUp()
23
	{
24
		$this->mock = $this->getMock( 'TYPO3\\CMS\\Core\\Mail\\MailMessage' );
25
		$this->object = new \Aimeos\MW\Mail\Typo3( $this->mock );
26
	}
27
28
29
	public function testCreateMessage()
30
	{
31
		$result = $this->object->createMessage( 'ISO-8859-1' );
32
		$this->assertInstanceOf( '\\Aimeos\\MW\\Mail\\Message\\Iface', $result );
33
	}
34
35
36
	public function testSend()
37
	{
38
		$this->object->send( $this->object->createMessage() );
39
	}
40
41
}
42