mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-21 03:42:54 +00:00
Expand test coverage.
This commit is contained in:
@@ -139,8 +139,8 @@ class CreateControllerTest extends TestCase
|
||||
{
|
||||
// mock stuff
|
||||
$repository = $this->mock(RuleRepositoryInterface::class);
|
||||
$ruleGroupRepos = $this->mock(RuleGroupRepositoryInterface::class);
|
||||
$userRepos = $this->mock(UserRepositoryInterface::class);
|
||||
$this->mock(RuleGroupRepositoryInterface::class);
|
||||
$this->mock(UserRepositoryInterface::class);
|
||||
|
||||
$this->mockDefaultSession();
|
||||
Preferences::shouldReceive('mark')->atLeast()->once();
|
||||
@@ -155,7 +155,7 @@ class CreateControllerTest extends TestCase
|
||||
'title' => 'A',
|
||||
'trigger' => 'store-journal',
|
||||
'description' => 'D',
|
||||
'rule_triggers' => [
|
||||
'triggers' => [
|
||||
[
|
||||
'type' => 'description_is',
|
||||
'value' => 'A',
|
||||
@@ -163,7 +163,7 @@ class CreateControllerTest extends TestCase
|
||||
|
||||
],
|
||||
],
|
||||
'rule_actions' => [
|
||||
'actions' => [
|
||||
[
|
||||
'type' => 'set_category',
|
||||
'value' => 'C',
|
||||
|
Reference in New Issue
Block a user