Code Duplication    Length = 11-11 lines in 2 locations

Tests/Functional/MappingToElasticaTest.php 2 locations

@@ 58-68 (lines=11) @@
55
        $this->assertEquals(array('yyyy-MM-dd'), $mapping['type']['dynamic_date_formats']);
56
    }
57
58
    public function testORMResetIndexAddsMappings()
59
    {
60
        $client = $this->createClient(array('test_case' => 'ORM'));
61
        $resetter = $this->getResetter($client);
62
        $resetter->resetIndex('index');
63
64
        $type = $this->getType($client);
65
        $mapping = $type->getMapping();
66
67
        $this->assertNotEmpty($mapping, 'Mapping was populated');
68
    }
69
70
    public function testORMResetType()
71
    {
@@ 70-80 (lines=11) @@
67
        $this->assertNotEmpty($mapping, 'Mapping was populated');
68
    }
69
70
    public function testORMResetType()
71
    {
72
        $client = $this->createClient(array('test_case' => 'ORM'));
73
        $resetter = $this->getResetter($client);
74
        $resetter->resetIndexType('index', 'type');
75
76
        $type = $this->getType($client);
77
        $mapping = $type->getMapping();
78
79
        $this->assertNotEmpty($mapping, 'Mapping was populated');
80
    }
81
82
    public function testMappingIteratorToArrayField()
83
    {