Completed
Push — master ( c97ea9...aac971 )
by Alex
03:39
created

ListBuilderTestsBase::getFields()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 6
rs 10
c 1
b 0
f 1
1
<?php
2
namespace Mezon\Gui\Tests;
3
4
use PHPUnit\Framework\TestCase;
5
6
class ListBuilderTestsBase extends TestCase
7
{
8
9
    /**
10
     * Method returns list of fields
11
     *
12
     * @return array Fields algorithms object
13
     */
14
    protected function getFields(): array
15
    {
16
        return [
17
            'id',
18
            'domain_id',
19
            'title'
20
        ];
21
    }
22
23
    /**
24
     * Method returns testing records
25
     *
26
     * @return array testing records
27
     */
28
    protected function getRecords(): array
29
    {
30
        return [
31
            [
32
                'id' => 1,
33
            ],
34
            [
35
                'id' => 2,
36
            ]
37
        ];
38
    }
39
}
40