@@ -40,6 +40,9 @@ discard block |
||
40 | 40 | } |
41 | 41 | } |
42 | 42 | |
43 | + /** |
|
44 | + * @param string $indexName |
|
45 | + */ |
|
43 | 46 | public function getIndexConfiguration($indexName) |
44 | 47 | { |
45 | 48 | if (!$this->hasIndexConfiguration($indexName)) { |
@@ -90,6 +93,9 @@ discard block |
||
90 | 93 | return isset($this->indexes[$indexName]); |
91 | 94 | } |
92 | 95 | |
96 | + /** |
|
97 | + * @param string $indexTemplateName |
|
98 | + */ |
|
93 | 99 | public function hasIndexTemplateConfiguration($indexTemplateName) |
94 | 100 | { |
95 | 101 | return isset($this->indexTemplates[$indexTemplateName]); |
@@ -354,6 +354,9 @@ discard block |
||
354 | 354 | call_user_func_array(array($expectation, 'withConsecutive'), $events); |
355 | 355 | } |
356 | 356 | |
357 | + /** |
|
358 | + * @param string $indexName |
|
359 | + */ |
|
357 | 360 | private function mockIndex($indexName, IndexConfig $config, $mapping = array()) |
358 | 361 | { |
359 | 362 | $this->configManager->expects($this->atLeast(1)) |
@@ -373,6 +376,9 @@ discard block |
||
373 | 376 | return $index; |
374 | 377 | } |
375 | 378 | |
379 | + /** |
|
380 | + * @param string $indexTemplateName |
|
381 | + */ |
|
376 | 382 | private function mockIndexTemplate($indexTemplateName, IndexTemplateConfig $config, $mapping = array()) |
377 | 383 | { |
378 | 384 | $this->configManager->expects($this->atLeast(1)) |
@@ -392,6 +398,10 @@ discard block |
||
392 | 398 | return $index; |
393 | 399 | } |
394 | 400 | |
401 | + /** |
|
402 | + * @param string $typeName |
|
403 | + * @param string $indexName |
|
404 | + */ |
|
395 | 405 | private function mockType($typeName, $indexName, TypeConfig $typeConfig, IndexConfig $indexConfig, $mapping = array()) |
396 | 406 | { |
397 | 407 | $this->configManager->expects($this->atLeast(1)) |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace FOS\ElasticaBundle\Tests\Index; |
4 | 4 | |
5 | -use Elastica\Type; |
|
6 | 5 | use FOS\ElasticaBundle\Configuration\ConfigManager; |
7 | 6 | use FOS\ElasticaBundle\Configuration\IndexConfig; |
8 | 7 | use FOS\ElasticaBundle\Configuration\IndexTemplateConfig; |