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 (#259)
by Jérémiah
11:39
created

CustomScalarTest   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
lcom 1
cbo 3
dl 0
loc 33
rs 10
c 1
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 6 1
A testDateTimeTypeSerialize() 0 8 1
A testDateTimeTypeParseValue() 0 8 1
A testDateTimeTypeDescription() 0 5 1
1
<?php
2
3
namespace Overblog\GraphQLBundle\Tests\Functional\Security;
4
5
use Overblog\GraphQLBundle\Tests\Functional\TestCase;
6
7
class CustomScalarTest extends TestCase
8
{
9
    protected function setUp()
10
    {
11
        parent::setUp();
12
13
        static::bootKernel(['test_case' => 'customScalar']);
14
    }
15
16
    public function testDateTimeTypeSerialize()
17
    {
18
        $query = '{ dateTime }';
19
        $expected = [
20
            'dateTime' => '2016-11-28 12:00:00',
21
        ];
22
        $this->assertGraphQL($query, $expected);
23
    }
24
25
    public function testDateTimeTypeParseValue()
26
    {
27
        $query = '{ dateTime(dateTime: "2016-01-18 23:00:00") }';
28
        $expected = [
29
            'dateTime' => '2016-01-18 23:00:00',
30
        ];
31
        $this->assertGraphQL($query, $expected);
32
    }
33
34
    public function testDateTimeTypeDescription()
35
    {
36
        $dateTimeType = static::$kernel->getContainer()->get('overblog_graphql.type_resolver')->resolve('DateTime');
37
        $this->assertEquals('The DateTime type', $dateTimeType->description);
38
    }
39
}
40