Code Duplication    Length = 13-13 lines in 2 locations

tests/GraphNode/GraphEdgeTest.php 1 location

@@ 155-167 (lines=13) @@
152
        $this->assertEquals('faz', $field);
153
    }
154
155
    public function testFalseDefaultsWillReturnSameType()
156
    {
157
        $graphEdge = new GraphEdge($this->request, ['foo' => 'bar']);
158
159
        $field = $graphEdge->getField('baz', '');
160
        $this->assertSame('', $field);
161
162
        $field = $graphEdge->getField('baz', 0);
163
        $this->assertSame(0, $field);
164
165
        $field = $graphEdge->getField('baz', false);
166
        $this->assertFalse($field);
167
    }
168
169
    public function testTheKeysFromTheCollectionCanBeReturned()
170
    {

tests/GraphNode/GraphNodeTest.php 1 location

@@ 157-169 (lines=13) @@
154
        $this->assertEquals('faz', $field);
155
    }
156
157
    public function testFalseDefaultsWillReturnSameType()
158
    {
159
        $graphNode = new GraphNode(['foo' => 'bar']);
160
161
        $field = $graphNode->getField('baz', '');
162
        $this->assertSame('', $field);
163
164
        $field = $graphNode->getField('baz', 0);
165
        $this->assertSame(0, $field);
166
167
        $field = $graphNode->getField('baz', false);
168
        $this->assertFalse($field);
169
    }
170
171
    public function testTheFieldsFromTheGraphNodeCanBeReturned()
172
    {