Code Duplication    Length = 7-7 lines in 3 locations

tests/GraphNode/GraphEdgeTest.php 3 locations

@@ 122-128 (lines=7) @@
119
        $this->assertEquals('dummy1dummy2', $output);
120
    }
121
122
    public function testAnExistingPropertyCanBeAccessed()
123
    {
124
        $graphEdge = new GraphEdge($this->request, ['foo' => 'bar']);
125
126
        $field = $graphEdge->getField('foo');
127
        $this->assertEquals('bar', $field);
128
    }
129
130
    public function testAMissingPropertyWillReturnNull()
131
    {
@@ 130-136 (lines=7) @@
127
        $this->assertEquals('bar', $field);
128
    }
129
130
    public function testAMissingPropertyWillReturnNull()
131
    {
132
        $graphEdge = new GraphEdge($this->request, ['foo' => 'bar']);
133
        $field = $graphEdge->getField('baz');
134
135
        $this->assertNull($field, 'Expected the property to return null.');
136
    }
137
138
    public function testAMissingPropertyWillReturnTheDefault()
139
    {
@@ 138-144 (lines=7) @@
135
        $this->assertNull($field, 'Expected the property to return null.');
136
    }
137
138
    public function testAMissingPropertyWillReturnTheDefault()
139
    {
140
        $graphEdge = new GraphEdge($this->request, ['foo' => 'bar']);
141
142
        $field = $graphEdge->getField('baz', 'faz');
143
        $this->assertEquals('faz', $field);
144
    }
145
146
    public function testFalseDefaultsWillReturnSameType()
147
    {