Passed
Push — master ( 219f2b...999eec )
by Aimeos
05:24
created

NoneTest::testSubject()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * @license LGPLv3, https://opensource.org/licenses/LGPL-3.0
5
 * @copyright Aimeos (aimeos.org), 2016-2021
6
 */
7
8
namespace Aimeos\MW\Mail\Message;
9
10
11
class NoneTest extends \PHPUnit\Framework\TestCase
12
{
13
	private $object;
14
15
16
	protected function setUp() : void
17
	{
18
		$this->object = new \Aimeos\MW\Mail\Message\None();
19
	}
20
21
22
	protected function tearDown() : void
23
	{
24
		unset( $this->object );
25
	}
26
27
28
	public function testFrom()
29
	{
30
		$this->assertInstanceOf( \Aimeos\MW\Mail\Message\Iface::class, $this->object->from( '[email protected]' ) );
31
	}
32
33
34
	public function testTo()
35
	{
36
		$this->assertInstanceOf( \Aimeos\MW\Mail\Message\Iface::class, $this->object->to( '[email protected]' ) );
37
	}
38
39
40
	public function testCc()
41
	{
42
		$this->assertInstanceOf( \Aimeos\MW\Mail\Message\Iface::class, $this->object->cc( '[email protected]' ) );
43
	}
44
45
46
	public function testBcc()
47
	{
48
		$this->assertInstanceOf( \Aimeos\MW\Mail\Message\Iface::class, $this->object->bcc( '[email protected]' ) );
49
	}
50
51
52
	public function testReplyTo()
53
	{
54
		$this->assertInstanceOf( \Aimeos\MW\Mail\Message\Iface::class, $this->object->replyTo( '[email protected]' ) );
55
	}
56
57
58
	public function testHeader()
59
	{
60
		$this->assertInstanceOf( \Aimeos\MW\Mail\Message\Iface::class, $this->object->header( 'X-Generator', 'Aimeos' ) );
61
	}
62
63
64
	public function testSend()
65
	{
66
		$this->assertInstanceOf( \Aimeos\MW\Mail\Message\Iface::class, $this->object->send() );
67
	}
68
69
70
	public function testSender()
71
	{
72
		$this->assertInstanceOf( \Aimeos\MW\Mail\Message\Iface::class, $this->object->sender( '[email protected]' ) );
73
	}
74
75
76
	public function testSubject()
77
	{
78
		$this->assertInstanceOf( \Aimeos\MW\Mail\Message\Iface::class, $this->object->subject( 'test' ) );
79
	}
80
81
82
	public function testText()
83
	{
84
		$this->assertInstanceOf( \Aimeos\MW\Mail\Message\Iface::class, $this->object->text( 'test' ) );
85
	}
86
87
88
	public function testHtml()
89
	{
90
		$this->assertInstanceOf( \Aimeos\MW\Mail\Message\Iface::class, $this->object->html( 'test' ) );
91
	}
92
93
94
	public function testAttach()
95
	{
96
		$this->assertInstanceOf( \Aimeos\MW\Mail\Message\Iface::class, $this->object->attach( 'test', 'mime', 'file' ) );
97
	}
98
99
100
	public function testEmbed()
101
	{
102
		$this->assertEquals( '', $this->object->embed( 'test', 'mime', 'file' ) );
103
	}
104
}
105