Code Duplication    Length = 11-12 lines in 2 locations

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

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