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 (#64)
by Adrian
05:08
created

ExceptionTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 6 1
B testExceptionIsMappedToAWarning() 0 26 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\Functional\Exception;
13
14
use Overblog\GraphQLBundle\Tests\Functional\TestCase;
15
16
/**
17
 * Class ConnectionTest.
18
 *
19
 * @see https://github.com/graphql/graphql-relay-js/blob/master/src/connection/__tests__/connection.js
20
 */
21
class ExceptionTest extends TestCase
22
{
23
    protected function setUp()
24
    {
25
        parent::setUp();
26
27
        static::createAndBootKernel(['test_case' => 'exception']);
28
    }
29
30
    public function testExceptionIsMappedToAWarning()
31
    {
32
        $query = <<<EOF
33
query ExceptionQuery {
34
    test
35
}
36
EOF;
37
38
        $expectedData = [
39
            'test' => null,
40
        ];
41
42
        $expectedErrors = [
43
            [
44
                'message' => 'Invalid argument exception',
45
                'locations' => [
46
                    [
47
                        'line' => 2,
48
                        'column' => 5,
49
                    ]
50
                ],
51
            ],
52
        ];
53
54
        $this->assertGraphQL($query, $expectedData, $expectedErrors);
55
    }
56
}
57