Code Duplication    Length = 7-7 lines in 3 locations

tests/GraphNode/GraphEdgeTest.php 3 locations

@@ 131-137 (lines=7) @@
128
        $this->assertEquals($graphEdgeToCompare, $graphEdge);
129
    }
130
131
    public function testAnExistingPropertyCanBeAccessed()
132
    {
133
        $graphEdge = new GraphEdge($this->request, ['foo' => 'bar']);
134
135
        $field = $graphEdge->getField('foo');
136
        $this->assertEquals('bar', $field);
137
    }
138
139
    public function testAMissingPropertyWillReturnNull()
140
    {
@@ 139-145 (lines=7) @@
136
        $this->assertEquals('bar', $field);
137
    }
138
139
    public function testAMissingPropertyWillReturnNull()
140
    {
141
        $graphEdge = new GraphEdge($this->request, ['foo' => 'bar']);
142
        $field = $graphEdge->getField('baz');
143
144
        $this->assertNull($field, 'Expected the property to return null.');
145
    }
146
147
    public function testAMissingPropertyWillReturnTheDefault()
148
    {
@@ 147-153 (lines=7) @@
144
        $this->assertNull($field, 'Expected the property to return null.');
145
    }
146
147
    public function testAMissingPropertyWillReturnTheDefault()
148
    {
149
        $graphEdge = new GraphEdge($this->request, ['foo' => 'bar']);
150
151
        $field = $graphEdge->getField('baz', 'faz');
152
        $this->assertEquals('faz', $field);
153
    }
154
155
    public function testFalseDefaultsWillReturnSameType()
156
    {