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

MutationFieldDefinitionTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A testUndefinedMutateAndGetPayloadConfig() 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\Relay\Node;
13
14
use Overblog\GraphQLBundle\Relay\Mutation\MutationFieldDefinition;
15
16
class MutationFieldDefinitionTest extends \PHPUnit_Framework_TestCase
17
{
18
    /**
19
     * @var MutationFieldDefinition
20
     */
21
    private $definition;
22
23
    public function setUp()
24
    {
25
        $this->definition = new MutationFieldDefinition();
26
    }
27
28
    /**
29
     * @expectedException \InvalidArgumentException
30
     * @expectedExceptionMessage Mutation "mutateAndGetPayload" config is required.
31
     */
32
    public function testUndefinedMutateAndGetPayloadConfig()
33
    {
34
        $this->definition->toMappingDefinition([]);
35
    }
36
}
37