Code Duplication    Length = 13-13 lines in 2 locations

tests/GraphNode/GraphEdgeTest.php 1 location

@@ 146-158 (lines=13) @@
143
        $this->assertEquals('faz', $field);
144
    }
145
146
    public function testFalseDefaultsWillReturnSameType()
147
    {
148
        $graphEdge = new GraphEdge($this->request, ['foo' => 'bar']);
149
150
        $field = $graphEdge->getField('baz', '');
151
        $this->assertSame('', $field);
152
153
        $field = $graphEdge->getField('baz', 0);
154
        $this->assertSame(0, $field);
155
156
        $field = $graphEdge->getField('baz', false);
157
        $this->assertFalse($field);
158
    }
159
160
    public function testTheKeysFromTheCollectionCanBeReturned()
161
    {

tests/GraphNode/GraphNodeTest.php 1 location

@@ 165-177 (lines=13) @@
162
        $this->assertEquals('faz', $field);
163
    }
164
165
    public function testFalseDefaultsWillReturnSameType()
166
    {
167
        $graphNode = new GraphNode(['foo' => 'bar']);
168
169
        $field = $graphNode->getField('baz', '');
170
        $this->assertSame('', $field);
171
172
        $field = $graphNode->getField('baz', 0);
173
        $this->assertSame(0, $field);
174
175
        $field = $graphNode->getField('baz', false);
176
        $this->assertFalse($field);
177
    }
178
179
    public function testTheFieldsFromTheGraphNodeCanBeReturned()
180
    {