Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

testItCanCreateAGroupOfCrudObjectsFromArrayInput()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 6
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 9
rs 10
1
<?php
2
3
namespace Backpack\CRUD\Tests\Unit\CrudPanel;
4
5
/**
6
 * @covers Backpack\CRUD\app\Library\CrudPanel\CrudObjectGroup
7
 */
8
class CrudPanelObjectGroupTest extends \Backpack\CRUD\Tests\config\CrudPanel\BaseCrudPanel
9
{
10
    public function testItCanCreateAGroupOfCrudObjects()
11
    {
12
        $this->crudPanel->group(
13
            $this->crudPanel->field('test'),
14
            $this->crudPanel->field('test2')
15
        )->label('testing');
0 ignored issues
show
Bug introduced by
The method label() does not exist on Backpack\CRUD\app\Librar...udPanel\CrudObjectGroup. Since you implemented __call, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

15
        )->/** @scrutinizer ignore-call */ label('testing');
Loading history...
16
17
        $this->assertEquals('testing', $this->crudPanel->fields()['test']['label']);
18
        $this->assertEquals('testing', $this->crudPanel->fields()['test2']['label']);
19
    }
20
21
    public function testItCanCreateAGroupOfCrudObjectsFromArrayInput()
22
    {
23
        $this->crudPanel->group([
24
            $this->crudPanel->field('test'),
25
            $this->crudPanel->field('test2'),
26
        ])->label('testing');
27
28
        $this->assertEquals('testing', $this->crudPanel->fields()['test']['label']);
29
        $this->assertEquals('testing', $this->crudPanel->fields()['test2']['label']);
30
    }
31
}
32