Fixing reset command to allow resetting of just one type, starting to write test

This commit is contained in:
Lea Haensenberger 2013-12-16 11:58:58 +01:00
commit 05ee300ddb
2 changed files with 54 additions and 1 deletions

View file

@ -60,7 +60,7 @@ class ResetCommand extends ContainerAwareCommand
if (null !== $type) {
$output->writeln(sprintf('<info>Resetting</info> <comment>%s/%s</comment>', $index, $type));
$this->resetter->resetIndex($index, $type);
$this->resetter->resetIndexType($index, $type);
} else {
$indexes = null === $index
? array_keys($this->indexManager->getAllIndexes())