summaryrefslogtreecommitdiff
path: root/tests/units/Validator/ProjectValidatorTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-06-26 11:57:28 -0400
committerFrederic Guillot <fred@kanboard.net>2016-06-26 11:57:28 -0400
commitb48c0cecbb1f687641594430260a67938d870cbb (patch)
tree82169826993d3d8c4790b653ce3901e152f6d4d8 /tests/units/Validator/ProjectValidatorTest.php
parent4a230d331ec220fc32a48525afb308af0d9787fa (diff)
Added new arguments to project API calls and update composer.json
Diffstat (limited to 'tests/units/Validator/ProjectValidatorTest.php')
-rw-r--r--tests/units/Validator/ProjectValidatorTest.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/units/Validator/ProjectValidatorTest.php b/tests/units/Validator/ProjectValidatorTest.php
index 07de6c25..e1e2f077 100644
--- a/tests/units/Validator/ProjectValidatorTest.php
+++ b/tests/units/Validator/ProjectValidatorTest.php
@@ -55,13 +55,19 @@ class ProjectValidatorTest extends Base
$r = $validator->validateModification(array('id' => 1, 'name' => 'test', 'identifier' => 'TEST1'));
$this->assertTrue($r[0]);
- $r = $validator->validateModification(array('id' => 1, 'name' => 'test', 'identifier' => 'test3'));
+ $r = $validator->validateModification(array('id' => 1, 'identifier' => 'test3'));
$this->assertTrue($r[0]);
- $r = $validator->validateModification(array('id' => 1, 'name' => 'test', 'identifier' => ''));
+ $r = $validator->validateModification(array('id' => 1, 'identifier' => ''));
$this->assertTrue($r[0]);
- $r = $validator->validateModification(array('id' => 1, 'name' => 'test', 'identifier' => 'TEST2'));
+ $r = $validator->validateModification(array('id' => 1, 'identifier' => 'TEST2'));
+ $this->assertFalse($r[0]);
+
+ $r = $validator->validateModification(array('id' => 1, 'name' => ''));
+ $this->assertFalse($r[0]);
+
+ $r = $validator->validateModification(array('id' => 1, 'name' => null));
$this->assertFalse($r[0]);
}
}