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

Passed
Pull Request — master (#277)
by Jérémiah
14:57
created

ExceptionTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 38
rs 10
1
<?php
2
3
namespace Overblog\GraphQLBundle\Tests\Functional\Exception;
4
5
use Overblog\GraphQLBundle\Tests\Functional\TestCase;
6
7
class ExceptionTest extends TestCase
8
{
9
    protected function setUp()
10
    {
11
        parent::setUp();
12
13
        static::bootKernel(['test_case' => 'exception']);
14
    }
15
16
    public function testExceptionIsMappedToAWarning()
17
    {
18
        $query = <<<'EOF'
19
query ExceptionQuery {
20
    test
21
}
22
EOF;
23
24
        $expectedData = [
25
            'test' => null,
26
        ];
27
28
        $expectedErrors = [
29
            [
30
                'message' => 'Invalid argument exception',
31
                'locations' => [
32
                    [
33
                        'line' => 2,
34
                        'column' => 5,
35
                    ],
36
                ],
37
                'path' => ['test'],
38
                'category' => 'user',
39
            ],
40
        ];
41
42
        $this->assertGraphQL($query, $expectedData, $expectedErrors);
43
    }
44
}
45