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 (#5)
by Jérémiah
07:11
created

AbstractProxyResolverTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getResolverSolutionsMapping() 0 8 1
A testResolveKnownMutation() 0 6 1
A testResolveUnknownMutation() 0 4 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;
13
14
abstract class AbstractProxyResolverTest extends AbstractResolverTest
15
{
16
    protected function getResolverSolutionsMapping()
17
    {
18
        $solutionClass = sprintf('%s\\Toto', __NAMESPACE__);
19
20
        return [
21
            'Toto' => ['solution' => new $solutionClass(),  'method' => 'resolve'],
22
        ];
23
    }
24
25
    public function testResolveKnownMutation()
26
    {
27
        $result = $this->resolver->resolve(['Toto', ['my', 'resolve', 'test']]);
28
29
        $this->assertEquals(['my', 'resolve', 'test'], $result);
30
    }
31
32
    /**
33
     * @expectedException \Overblog\GraphQLBundle\Resolver\UnresolvableException
34
     */
35
    public function testResolveUnknownMutation()
36
    {
37
        $this->resolver->resolve('Fake');
38
    }
39
}
40