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
Push — add-more-tests ( 5019ae...3f486c )
by Pedro
09:43 queued 08:21
created

CrudPanelOperationsTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testItCanSetAndGetTheCurrentOperation() 0 5 1
A testItCanConfigureOperations() 0 8 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