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