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
Push — master ( ac4e13...9232e9 )
by Jérémiah
01:04
created

CustomScalarTest::testDateTimeTypeDescription()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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