1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
/**
* Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
*/
namespace Temando\Shipping\Model;
use Magento\TestFramework\Helper\Bootstrap;
use Magento\TestFramework\ObjectManager;
class DocumentationTest extends \PHPUnit\Framework\TestCase
{
/** @var ObjectManager $objectManager */
private $objectManager;
/** @var Documentation $documentation*/
private $documentation;
public function setUp()
{
parent::setUp();
$this->objectManager = Bootstrap::getObjectManager();
$this->documentation= $this->objectManager->create(Documentation::class);
$this->documentation->setData(DocumentationInterface::NAME, 'NAME');
$this->documentation->setData(DocumentationInterface::DOCUMENTATION_ID, 'DOCUMENTATION_ID');
$this->documentation->setData(DocumentationInterface::MIME_TYPE, 'MIME_TYPE');
$this->documentation->setData(DocumentationInterface::SIZE, 'SIZE');
$this->documentation->setData(DocumentationInterface::TYPE, 'TYPE');
$this->documentation->setData(DocumentationInterface::URL, 'URL');
}
/**
* @test
*/
public function getNameTest()
{
$result = $this->documentation->getName();
$this->assertEquals($result, "NAME");
}
/**
* @test
*/
public function getDocumentationIdTest()
{
$result = $this->documentation->getDocumentationId();
$this->assertEquals($result, "DOCUMENTATION_ID");
}
/**
* @test
*/
public function getMimeTypeTest()
{
$result = $this->documentation->getMimeType();
$this->assertEquals($result, "MIME_TYPE");
}
/**
* @test
*/
public function getSizeTest()
{
$result = $this->documentation->getSize();
$this->assertEquals($result, "SIZE");
}
/**
* @test
*/
public function getTypeTest()
{
$result = $this->documentation->getType();
$this->assertEquals($result, "TYPE");
}
/**
* @test
*/
public function getUrlTest()
{
$result = $this->documentation->getUrl();
$this->assertEquals($result, "URL");
}
}