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

CrudPanelErrorsTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testItCanEnableAndDisableGroupedErrors() 0 7 1
A testItCanEnableAndDisableInlineErrors() 0 7 1
1
<?php
2
3
namespace Backpack\CRUD\Tests\Unit\CrudPanel;
4
5
/**
6
 * @covers Backpack\CRUD\app\Library\CrudPanel\Traits\Errors
7
 */
8
class CrudPanelErrorsTest extends BaseCrudPanelTest
9
{
10
    public function testItCanEnableAndDisableInlineErrors()
11
    {
12
        $this->crudPanel->setOperation('create');
13
        $this->crudPanel->enableInlineErrors();
14
        $this->assertTrue($this->crudPanel->inlineErrorsEnabled());
15
        $this->crudPanel->disableInlineErrors();
16
        $this->assertFalse($this->crudPanel->inlineErrorsEnabled());
17
    }
18
19
    public function testItCanEnableAndDisableGroupedErrors()
20
    {
21
        $this->crudPanel->setOperation('create');
22
        $this->crudPanel->enableGroupedErrors();
23
        $this->assertTrue($this->crudPanel->groupedErrorsEnabled());
24
        $this->crudPanel->disableGroupedErrors();
25
        $this->assertFalse($this->crudPanel->groupedErrorsEnabled());
26
    }
27
}
28