forked from wallabag/wallabag
Adding tests for tagging rules reset
Fix test: associate tagging rule with user config Update src/Repository/TaggingRuleRepository.php Co-authored-by: Jérémy Benoist <j0k3r@users.noreply.github.com> Update src/Controller/ConfigController.php Co-authored-by: Jérémy Benoist <j0k3r@users.noreply.github.com> Update src/Repository/TaggingRuleRepository.php Co-authored-by: Jérémy Benoist <j0k3r@users.noreply.github.com>
This commit is contained in:
committed by
Sicong Jiang
parent
c65850050d
commit
897aa1d309
@ -576,7 +576,7 @@ class ConfigController extends AbstractController
|
||||
$annotationRepository->removeAllByUserId($this->getUser()->getId());
|
||||
break;
|
||||
case 'tagging_rules':
|
||||
$taggingRuleRepository->removeAllTaggingRules($this->getConfig()->getId());
|
||||
$taggingRuleRepository->removeAllByConfigId($this->getConfig()->getId());
|
||||
break;
|
||||
case 'tags':
|
||||
$this->removeAllTagsByUserId($this->getUser()->getId());
|
||||
|
||||
Reference in New Issue
Block a user