Code Duplication    Length = 13-13 lines in 2 locations

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
    {

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
    {