1 | <?php |
||
16 | class EmailSettingsDataTypeTest extends Unit |
||
17 | { |
||
18 | /** |
||
19 | * @var EmailSettingsDataType |
||
20 | */ |
||
21 | private $dataType; |
||
22 | |||
23 | /** |
||
24 | * Set the dataType. |
||
25 | * |
||
26 | * @SuppressWarnings(PHPMD.CamelCaseMethodName) |
||
27 | * phpcs:disable PSR2.Methods.MethodDeclaration.Underscore |
||
28 | */ |
||
29 | protected function _before() |
||
30 | { |
||
31 | $this->dataType = new EmailSettingsDataType(); |
||
32 | } |
||
33 | |||
34 | //============================================================================================================== |
||
35 | //================================================= TESTS ==================================================== |
||
36 | //============================================================================================================== |
||
37 | |||
38 | /** |
||
39 | * Get mapper handle test. |
||
40 | */ |
||
41 | public function testGetMapperHandle() |
||
42 | { |
||
43 | $result = $this->dataType->getMapperHandle(); |
||
44 | |||
45 | $this->assertSame('emailSettingsMapper', $result); |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * Get records test. |
||
50 | */ |
||
51 | public function testGetRecords() |
||
52 | { |
||
53 | $result = $this->dataType->getRecords(); |
||
54 | |||
55 | $this->assertSame([], $result); |
||
56 | } |
||
57 | } |
||
58 |