Expand test coverage.

This commit is contained in:
James Cole
2019-07-26 17:48:24 +02:00
parent 6ff4a0b45c
commit d94d34ca63
57 changed files with 2243 additions and 1597 deletions

View File

@@ -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',