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 (#275)
by Hugo
15:12
created

DebugListenerTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testDisabledDebugInfo() 0 6 1
A testEnabledDebugInfo() 0 9 1
1
<?php
2
3
namespace Overblog\GraphQLBundle\Tests\Functional\EventListener;
4
5
use GraphQL\Type\Introspection;
6
use Overblog\GraphQLBundle\Tests\Functional\TestCase;
7
8
class DebugListenerTest extends TestCase
9
{
10
    public function testDisabledDebugInfo()
11
    {
12
        $client = static::createClient(['test_case' => 'connection']);
13
        $response = $this->sendRequest($client, Introspection::getIntrospectionQuery(), true);
14
        $this->assertArrayNotHasKey('extensions', $response);
15
    }
16
17
    public function testEnabledDebugInfo()
18
    {
19
        $client = static::createClient(['test_case' => 'debug']);
20
        $response = $this->sendRequest($client, Introspection::getIntrospectionQuery(), true);
21
        $this->assertArrayHasKey('extensions', $response);
22
        $this->assertArrayHasKey('debug', $response['extensions']);
23
        $this->assertArrayHasKey('executionTime', $response['extensions']['debug']);
24
        $this->assertArrayHasKey('memoryUsage', $response['extensions']['debug']);
25
    }
26
}
27