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 (#185)
by Jérémiah
08:52
created

AbstractProxyResolverTest   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 3
dl 0
loc 29
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getResolverSolutionsMapping() 0 6 1
A createToto() 0 4 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
        return [
19
            'Toto' => ['solutionFunc' => [$this, 'createToto'], 'solutionFuncArgs' => [],  'method' => 'resolve'],
20
        ];
21
    }
22
23
    public function createToto()
24
    {
25
        return new Toto();
26
    }
27
28
    public function testResolveKnownMutation()
29
    {
30
        $result = $this->resolver->resolve(['Toto', ['my', 'resolve', 'test']]);
31
32
        $this->assertEquals(['my', 'resolve', 'test'], $result);
33
    }
34
35
    /**
36
     * @expectedException \Overblog\GraphQLBundle\Resolver\UnresolvableException
37
     */
38
    public function testResolveUnknownMutation()
39
    {
40
        $this->resolver->resolve('Fake');
41
    }
42
}
43