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

Completed
Pull Request — master (#7)
by Jérémiah
09:02
created

ValuesConfigSolutionTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 1
cbo 2
dl 0
loc 30
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createConfigSolution() 0 4 1
A testSolve() 0 22 1
1
<?php
2
3
/*
4
 * This file is part of the OverblogGraphQLBundle package.
5
 *
6
 * (c) Overblog <http://github.com/overblog/>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Overblog\GraphQLBundle\Tests\Resolver\Config;
13
14
use Overblog\GraphQLBundle\Resolver\Config\ValuesConfigSolution;
15
16
/**
17
 * @property ValuesConfigSolution $configSolution
18
 */
19
class ValuesConfigSolutionTest extends AbstractConfigSolutionTest
20
{
21
    protected function createConfigSolution()
22
    {
23
        return new ValuesConfigSolution();
24
    }
25
26
    public function testSolve()
27
    {
28
        $config = $this->configSolution->solve(
29
            [
30
                'values' => [
31
                    'test' => ['value' => 'my test value'],
32
                    'toto' => ['value' => 'my toto value'],
33
                    'expression-language-test' => ['value' => '@=["my", "test"]'],
34
                ],
35
            ]
36
        );
37
38
        $expected = [
39
            'values' => [
40
                'test' => ['value' => 'my test value'],
41
                'toto' => ['value' => 'my toto value'],
42
                'expression-language-test' => ['value' => ['my', 'test']],
43
            ],
44
        ];
45
46
        $this->assertEquals($expected, $config);
47
    }
48
}
49