summaryrefslogtreecommitdiff
path: root/tests/units/Validator/GroupValidatorTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-10-08 09:58:11 -0400
committerFrederic Guillot <fred@kanboard.net>2016-10-08 09:58:11 -0400
commitc2f1cc8f7419fe4eb5e9bd5e6ce05d90e719be17 (patch)
tree93900cc242574a346f14e2002f050b5f2c7dc55e /tests/units/Validator/GroupValidatorTest.php
parent1466afb771f0291bc350441aede14c97459128e7 (diff)
Restrict task complexity to a specific range to avoid integer overflow
Diffstat (limited to 'tests/units/Validator/GroupValidatorTest.php')
-rw-r--r--tests/units/Validator/GroupValidatorTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/units/Validator/GroupValidatorTest.php b/tests/units/Validator/GroupValidatorTest.php
index 879f99ce..020a8bc6 100644
--- a/tests/units/Validator/GroupValidatorTest.php
+++ b/tests/units/Validator/GroupValidatorTest.php
@@ -8,12 +8,12 @@ class GroupValidatorTest extends Base
{
public function testValidateCreation()
{
- $validator = new GroupValidator($this->container);
+ $groupValidator = new GroupValidator($this->container);
- $result = $validator->validateCreation(array('name' => 'Test'));
+ $result = $groupValidator->validateCreation(array('name' => 'Test'));
$this->assertTrue($result[0]);
- $result = $validator->validateCreation(array('name' => ''));
+ $result = $groupValidator->validateCreation(array('name' => ''));
$this->assertFalse($result[0]);
}