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

testResolveUnknownMutation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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