Code Duplication    Length = 11-12 lines in 3 locations

tests/Units/ElasticsearchExtraBundle/Repository/IndexConfigurationRepository.php 3 locations

@@ 14-25 (lines=12) @@
11
 */
12
class IndexConfigurationRepository extends atoum
13
{
14
    public function testGetReturnsConfig()
15
    {
16
        $this
17
            ->given($configs = ['my_client' => ['indices' => ['my_index' => ['my' => 'config']]]])
18
            ->and($this->newTestedInstance($configs))
19
            ->if($config = $this->testedInstance->get('my_client', 'my_index'))
20
            ->then
21
                ->array($config)
22
                    ->isEqualTo(['my' => 'config'])
23
        ;
24
            
25
    }
26
    
27
    public function testGetReturnsNullIfClientNotExists()
28
    {
@@ 27-37 (lines=11) @@
24
            
25
    }
26
    
27
    public function testGetReturnsNullIfClientNotExists()
28
    {
29
        $this
30
            ->given($configs = ['my_client' => ['indices' => ['my_index' => ['my' => 'config']]]])
31
            ->and($this->newTestedInstance($configs))
32
            ->if($config = $this->testedInstance->get('not_a_client', 'my_index'))
33
            ->then
34
                ->variable($config)
35
                    ->isNull()
36
        ;
37
    }
38
    
39
    public function testGetReturnsNullIfIndexNotExists()
40
    {
@@ 39-49 (lines=11) @@
36
        ;
37
    }
38
    
39
    public function testGetReturnsNullIfIndexNotExists()
40
    {
41
        $this
42
            ->given($configs = ['my_client' => ['indices' => ['my_index' => ['my' => 'config']]]])
43
            ->and($this->newTestedInstance($configs))
44
            ->if($config = $this->testedInstance->get('my_client', 'not_a_index'))
45
            ->then
46
                ->variable($config)
47
                    ->isNull()
48
        ;
49
    }
50
}