@@ 65-75 (lines=11) @@ | ||
62 | $this->assertSame(['yyyy-MM-dd'], $mapping['type']['dynamic_date_formats']); |
|
63 | } |
|
64 | ||
65 | public function testORMResetIndexAddsMappings() |
|
66 | { |
|
67 | static::bootKernel(['test_case' => 'ORM']); |
|
68 | $resetter = $this->getResetter(); |
|
69 | $resetter->resetIndex('index'); |
|
70 | ||
71 | $type = $this->getType(); |
|
72 | $mapping = $type->getMapping(); |
|
73 | ||
74 | $this->assertNotEmpty($mapping, 'Mapping was populated'); |
|
75 | } |
|
76 | ||
77 | public function testORMResetType() |
|
78 | { |
|
@@ 77-87 (lines=11) @@ | ||
74 | $this->assertNotEmpty($mapping, 'Mapping was populated'); |
|
75 | } |
|
76 | ||
77 | public function testORMResetType() |
|
78 | { |
|
79 | static::bootKernel(['test_case' => 'ORM']); |
|
80 | $resetter = $this->getResetter(); |
|
81 | $resetter->resetIndexType('index', 'type'); |
|
82 | ||
83 | $type = $this->getType(); |
|
84 | $mapping = $type->getMapping(); |
|
85 | ||
86 | $this->assertNotEmpty($mapping, 'Mapping was populated'); |
|
87 | } |
|
88 | ||
89 | public function testMappingIteratorToArrayField() |
|
90 | { |