diff --git a/src/Psecio/Iniscan/Rule.php b/src/Psecio/Iniscan/Rule.php index b124c72..3068632 100644 --- a/src/Psecio/Iniscan/Rule.php +++ b/src/Psecio/Iniscan/Rule.php @@ -325,7 +325,7 @@ public function values() 'description' => $this->description, 'level' => $this->level, 'status' => $this->status, - 'currentValue' => $this->value, + 'value' => $this->value, ); } diff --git a/tests/Psecio/Iniscan/RuleTest.php b/tests/Psecio/Iniscan/RuleTest.php index 3263acc..c4f8066 100644 --- a/tests/Psecio/Iniscan/RuleTest.php +++ b/tests/Psecio/Iniscan/RuleTest.php @@ -221,7 +221,8 @@ public function testGetRuleValues() 'name' => 'test1', 'description' => 'test description', 'level' => 'ERROR', - 'status' => true + 'status' => true, + 'value' => '123', ); $rule = new Rule($config, 'testing123'); $this->assertEquals($rule->values(), $config);