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
@ -14,12 +14,12 @@ class TaggingRuleRepository extends ServiceEntityRepository
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove all tagging rule for a config.
|
||||
* Remove all tagging rules for a config.
|
||||
* Used when a user wants to reset.
|
||||
*
|
||||
* @param int $configId
|
||||
*/
|
||||
public function removeAllTaggingRules($configId)
|
||||
public function removeAllByConfigId($configId)
|
||||
{
|
||||
$this->getEntityManager()
|
||||
->createQuery('DELETE FROM Wallabag\Entity\TaggingRule tr WHERE tr.config = :configId')
|
||||
|
||||
Reference in New Issue
Block a user