Code Duplication    Length = 7-9 lines in 2 locations

Tests/Provider/IndexableTest.php 2 locations

@@ 27-33 (lines=7) @@
24
25
class IndexableTest extends \PHPUnit_Framework_TestCase
26
{
27
    public function testIndexableUnknown()
28
    {
29
        $indexable = new Indexable([]);
30
        $index = $indexable->isObjectIndexable('index', 'type', new Entity());
31
32
        $this->assertTrue($index);
33
    }
34
35
    /**
36
     * @dataProvider provideIsIndexableCallbacks
@@ 38-46 (lines=9) @@
35
    /**
36
     * @dataProvider provideIsIndexableCallbacks
37
     */
38
    public function testValidIndexableCallbacks($callback, $return)
39
    {
40
        $indexable = new Indexable([
41
            'index/type' => $callback,
42
        ]);
43
        $index = $indexable->isObjectIndexable('index', 'type', new Entity());
44
45
        $this->assertSame($return, $index);
46
    }
47
48
    /**
49
     * @dataProvider provideInvalidIsIndexableCallbacks