Completed
Push — master ( 60f6d2...2121c5 )
by
unknown
12s queued 10s
created

EmailSettingsDataTypeTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 2
dl 0
loc 41
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A _before() 0 4 1
A testGetMapperHandle() 0 6 1
A testGetRecords() 0 6 1
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
     */
28
    protected function _before()
29
    {
30
        $this->dataType = new EmailSettingsDataType();
31
    }
32
33
    //==============================================================================================================
34
    //=================================================  TESTS  ====================================================
35
    //==============================================================================================================
36
37
    /**
38
     * Get mapper handle test.
39
     */
40
    public function testGetMapperHandle()
41
    {
42
        $result = $this->dataType->getMapperHandle();
43
44
        $this->assertSame('emailSettingsMapper', $result);
45
    }
46
47
    /**
48
     * Get records test.
49
     */
50
    public function testGetRecords()
51
    {
52
        $result = $this->dataType->getRecords();
53
54
        $this->assertSame([], $result);
55
    }
56
}
57