Passed
Push — master ( 718618...cd6f65 )
by Vladimir
02:24
created

DbTestCase::_before()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * @link https://github.com/yiimaker/yii2-newsletter
4
 * @copyright Copyright (c) 2017 Yii Maker
5
 * @license BSD 3-Clause License
6
 */
7
8
namespace ymaker\newsletter\tests\unit;
9
10
use yii\test\FixtureTrait;
11
12
/**
13
 * Base test case class with fixures support
14
 *
15
 * @author Vladimir Kuprienko <[email protected]>
16
 * @since 1.0
17
 */
18
class DbTestCase extends TestCase
19
{
20
    use FixtureTrait;
21
22
    /**
23
     * @var \UnitTester
24
     */
25
    protected $tester;
26
27
28
    /**
29
     * @inheritdoc
30
     */
31
    protected function _before()
32
    {
33
        parent::_before();
34
        $this->loadFixtures();
35
    }
36
37
    /**
38
     * @inheritdoc
39
     */
40
    protected function _after()
41
    {
42
        $this->unloadFixtures();
43
        parent::_after();
44
    }
45
46
    /**
47
     * @inheritdoc
48
     */
49
    public function fixtures()
50
    {
51
52
    }
53
}
54