Make event handlers easier to test (and then ignore them).

This commit is contained in:
James Cole
2017-04-28 10:34:11 +02:00
parent 29ff92f833
commit 5de8fce156
4 changed files with 96 additions and 26 deletions

View File

@@ -53,6 +53,27 @@ interface RuleGroupRepositoryInterface
*/
public function get(): Collection;
/**
* @param User $user
*
* @return Collection
*/
public function getActiveGroups(User $user): Collection;
/**
* @param RuleGroup $group
*
* @return Collection
*/
public function getActiveStoreRules(RuleGroup $group): Collection;
/**
* @param RuleGroup $group
*
* @return Collection
*/
public function getActiveUpdateRules(RuleGroup $group): Collection;
/**
* @return int
*/