Code Duplication    Length = 18-18 lines in 2 locations

Tests/Schema/ProcessorTest.php 2 locations

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