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

Test Failed
Pull Request — main (#4778)
by Pedro
25:44 queued 10:58
created

testItCanSetAndGetTheCurrentOperation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 10
c 1
b 0
f 1
1
<?php
2
3
namespace Backpack\CRUD\Tests\Unit\CrudPanel;
4
5
/**
6
 * @covers Backpack\CRUD\app\Library\CrudPanel\Traits\Operations
7
 */
8
class CrudPanelOperationsTest extends BaseCrudPanelTest
9
{
10
    public function testItCanSetAndGetTheCurrentOperation()
11
    {
12
        $this->crudPanel->setOperation('create');
13
        $operation = $this->crudPanel->getOperation();
14
        $this->assertEquals('create', $operation);
15
    }
16
17
    public function testItCanConfigureOperations()
18
    {
19
        $this->crudPanel->operation(['create', 'update'], function () {
20
            $this->crudPanel->addField(['name' => 'test', 'type' => 'text']);
21
        });
22
        $this->crudPanel->applyConfigurationFromSettings('create');
23
24
        $this->assertEquals(count($this->crudPanel->fields()), 1);
25
    }
26
}
27