summaryrefslogtreecommitdiff
path: root/tests/units/Model/GroupTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-14 20:18:13 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-14 20:18:13 -0500
commit805be7d33155478ef32c4bd3643dcf4025d85a05 (patch)
tree4ee858d96f3e3bf2b630471db148446c3c56b693 /tests/units/Model/GroupTest.php
parentdc35a78374e9b091505cfc56eefcd0c631c56e3a (diff)
Move validator methods
Diffstat (limited to 'tests/units/Model/GroupTest.php')
-rw-r--r--tests/units/Model/GroupTest.php22
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/units/Model/GroupTest.php b/tests/units/Model/GroupTest.php
index 2cbb254a..36b47dc5 100644
--- a/tests/units/Model/GroupTest.php
+++ b/tests/units/Model/GroupTest.php
@@ -57,26 +57,4 @@ class GroupTest extends Base
$this->assertTrue($groupModel->remove(1));
$this->assertEmpty($groupModel->getById(1));
}
-
- public function testValidateCreation()
- {
- $groupModel = new Group($this->container);
-
- $result = $groupModel->validateCreation(array('name' => 'Test'));
- $this->assertTrue($result[0]);
-
- $result = $groupModel->validateCreation(array('name' => ''));
- $this->assertFalse($result[0]);
- }
-
- public function testValidateModification()
- {
- $groupModel = new Group($this->container);
-
- $result = $groupModel->validateModification(array('name' => 'Test', 'id' => 1));
- $this->assertTrue($result[0]);
-
- $result = $groupModel->validateModification(array('name' => 'Test'));
- $this->assertFalse($result[0]);
- }
}