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 (#7)
by Jérémiah
09:24
created

GraphDumpSchemaCommandTest::testExecute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 22
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 22
rs 9.2
cc 1
eloc 13
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\Functional\Command;
13
14
use Overblog\GraphQLBundle\Command\GraphDumpSchemaCommand;
15
use Overblog\GraphQLBundle\Tests\Functional\TestCase;
16
use Symfony\Bundle\FrameworkBundle\Console\Application;
17
use Symfony\Component\Console\Tester\CommandTester;
18
19
class GraphDumpSchemaCommandTest extends TestCase
20
{
21
    public function testExecute()
22
    {
23
        $client = static::createClient(['test_case' => 'connection']);
24
        $kernel = $client->getKernel();
25
26
        $application = new Application($kernel);
27
        $application->add(new GraphDumpSchemaCommand());
28
29
        $command = $application->find('graph:dump-schema');
30
        $file = $kernel->getCacheDir().'/schema.yml';
31
32
        $commandTester = new CommandTester($command);
33
        $commandTester->execute(
34
            [
35
                'command' => $command->getName(),
36
                '--file' => $file,
37
            ]
38
        );
39
40
        $this->assertEquals(0, $commandTester->getStatusCode());
41
        $this->assertEquals(file_get_contents(__DIR__.'/schema.yml'), file_get_contents($file));
42
    }
43
}
44