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::testEnabledDebugInfo()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 9
rs 9.6666
c 1
b 0
f 0
cc 1
eloc 7
nc 1
nop 0
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