Completed
Push — master ( 187d97...118e30 )
by Tõnis
04:16
created

TestBaseActive   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 10
dl 0
loc 24
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace andmemasin\surveybasemodels\tests;
4
5
require_once __DIR__ . '/TestBase.php';
6
7
use andmemasin\myabstract\MyActiveRecord;
8
use yii;
9
10
11
class TestBaseActive extends TestBase
12
{
13
    /** @var MyActiveRecord */
14
    public $model;
15
    /**
16
     * @return array
17
     */
18
    public function baseModelAttributes()
19
    {
20
        return [
21
            'user_created' => 1,
22
            'user_updated' => 1,
23
            'user_closed' => null,
24
            'time_created' => "2010-10-01",
25
            'time_updated' => "2010-10-01",
26
            'time_closed' => null,
27
28
        ];
29
    }
30
31
32
33
    public function testModelName() {
34
        $this->assertInternalType('string', $this->model::modelName());
35
    }
36
37
}