Code Duplication    Length = 18-18 lines in 2 locations

Tests/Schema/ProcessorTest.php 2 locations

@@ 88-105 (lines=18) @@
85
        $this->assertArrayNotHasKey('errors', $processor->getResponseData());
86
    }
87
88
    public function testListNullResponse()
89
    {
90
        $processor = new Processor(new Schema([
91
            'query' => new ObjectType([
92
                'name'   => 'RootQuery',
93
                'fields' => [
94
                    'list' => [
95
                        'type'    => new ListType(new StringType()),
96
                        'resolve' => function () {
97
                            return null;
98
                        }
99
                    ]
100
                ]
101
            ])
102
        ]));
103
        $data      = $processor->processPayload(' { list }')->getResponseData();
104
        $this->assertEquals(['data' => ['list' => null]], $data);
105
    }
106
107
108
    public function testSubscriptionNullResponse()
@@ 108-125 (lines=18) @@
105
    }
106
107
108
    public function testSubscriptionNullResponse()
109
    {
110
        $processor = new Processor(new Schema([
111
            'query' => new ObjectType([
112
                'name'   => 'RootQuery',
113
                'fields' => [
114
                    'list' => [
115
                        'type'    => new ListType(new StringType()),
116
                        'resolve' => function () {
117
                            return null;
118
                        }
119
                    ]
120
                ]
121
            ])
122
        ]));
123
        $data      = $processor->processPayload(' { __schema { subscriptionType { name } } }')->getResponseData();
124
        $this->assertEquals(['data' => ['__schema' => ['subscriptionType' => null]]], $data);
125
    }
126
127
    public function testSchemaOperations()
128
    {