mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Improve test coverage.
This commit is contained in:
@@ -343,4 +343,14 @@ class RuleGroupRepository implements RuleGroupRepositoryInterface
|
||||
|
||||
return $ruleGroup;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $title
|
||||
*
|
||||
* @return RuleGroup|null
|
||||
*/
|
||||
public function findByTitle(string $title): ?RuleGroup
|
||||
{
|
||||
return $this->user->ruleGroups()->where('title', $title)->first();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ interface RuleGroupRepositoryInterface
|
||||
public function count(): int;
|
||||
|
||||
/**
|
||||
* @param RuleGroup $ruleGroup
|
||||
* @param RuleGroup $ruleGroup
|
||||
* @param RuleGroup|null $moveTo
|
||||
*
|
||||
* @return bool
|
||||
@@ -51,6 +51,13 @@ interface RuleGroupRepositoryInterface
|
||||
*/
|
||||
public function find(int $ruleGroupId): ?RuleGroup;
|
||||
|
||||
/**
|
||||
* @param string $title
|
||||
*
|
||||
* @return RuleGroup|null
|
||||
*/
|
||||
public function findByTitle(string $title): ?RuleGroup;
|
||||
|
||||
/**
|
||||
* Get all rule groups.
|
||||
*
|
||||
@@ -143,7 +150,7 @@ interface RuleGroupRepositoryInterface
|
||||
|
||||
/**
|
||||
* @param RuleGroup $ruleGroup
|
||||
* @param array $data
|
||||
* @param array $data
|
||||
*
|
||||
* @return RuleGroup
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user