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

ListBuilderTestsBase   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 8
dl 0
loc 30
rs 10
c 1
b 0
f 1
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getFields() 0 6 1
A getRecords() 0 8 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