Code Duplication    Length = 18-18 lines in 2 locations

Tests/Schema/ProcessorTest.php 2 locations

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