summaryrefslogtreecommitdiff
path: root/tests/units
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-03-27 15:32:29 -0400
committerFrederic Guillot <fred@kanboard.net>2016-03-27 15:32:29 -0400
commitf11fccd0d78ab037e77cd973a9168eedcb609fc2 (patch)
treeb98b3e8fb4b7c6a5161503877b81fb4ca1237eeb /tests/units
parent9ba44a01dbb187f4c931e1ba838e2bad258d34f4 (diff)
Fix bad unique constraints in Mysql table user_has_notifications
Diffstat (limited to 'tests/units')
-rw-r--r--tests/units/Model/UserNotificationFilterTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/units/Model/UserNotificationFilterTest.php b/tests/units/Model/UserNotificationFilterTest.php
index 0b5f1d98..924f0883 100644
--- a/tests/units/Model/UserNotificationFilterTest.php
+++ b/tests/units/Model/UserNotificationFilterTest.php
@@ -26,10 +26,11 @@ class UserNotificationFilterTest extends Base
$this->assertEquals(1, $p->create(array('name' => 'UnitTest1')));
$this->assertEquals(2, $p->create(array('name' => 'UnitTest2')));
+ $this->assertEquals(3, $p->create(array('name' => 'UnitTest3')));
$this->assertEmpty($nf->getSelectedProjects(1));
- $nf->saveSelectedProjects(1, array(1, 2));
- $this->assertEquals(array(1, 2), $nf->getSelectedProjects(1));
+ $this->assertTrue($nf->saveSelectedProjects(1, array(1, 2, 3)));
+ $this->assertEquals(array(1, 2, 3), $nf->getSelectedProjects(1));
}
public function testSaveUserFilter()