ListBuilderTestsBase::getFields()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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