summaryrefslogtreecommitdiff
path: root/tests/units/Model/TaskMetadataTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-12-30 16:59:21 +0100
committerFrederic Guillot <fred@kanboard.net>2015-12-30 16:59:35 +0100
commit65f26699a63bd05859208092abb5d9ec1429a53f (patch)
tree02b37a94090d0b3fb8c71bf7cec229dbece5867a /tests/units/Model/TaskMetadataTest.php
parent9039e27b13c7836dd22cef0a069c8f168e8f2287 (diff)
Add unit test to remove metadata
Diffstat (limited to 'tests/units/Model/TaskMetadataTest.php')
-rw-r--r--tests/units/Model/TaskMetadataTest.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/units/Model/TaskMetadataTest.php b/tests/units/Model/TaskMetadataTest.php
index 9ce7d6be..2683c297 100644
--- a/tests/units/Model/TaskMetadataTest.php
+++ b/tests/units/Model/TaskMetadataTest.php
@@ -33,5 +33,10 @@ class TaskMetadataTest extends Base
$this->assertEquals(array('key1' => 'value2'), $tm->getAll(1));
$this->assertEquals(array('key1' => 'value1', 'key2' => 'value2'), $tm->getAll(2));
+
+ $this->assertTrue($tm->remove(2, 'key1'));
+ $this->assertFalse($tm->remove(2, 'key1'));
+
+ $this->assertEquals(array('key2' => 'value2'), $tm->getAll(2));
}
}