Completed
Push — do-not-scrutinize-tests ( fcf005 )
by Bart
04:15 queued 02:38
created

EmailSettingsDataTypeTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
c 0
b 0
f 0
lcom 1
cbo 2
dl 0
loc 42
rs 10
1
<?php
2
3
namespace NerdsAndCompany\Schematic\DataTypes;
4
5
use Codeception\Test\Unit;
6
7
/**
8
 * Class EmailSettingsDataTypeTest.
9
 *
10
 * @author    Nerds & Company
11
 * @copyright Copyright (c) 2015-2017, Nerds & Company
12
 * @license   MIT
13
 *
14
 * @see      http://www.nerds.company
15
 */
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