Add unit test to remove metadata

This commit is contained in:
Frederic Guillot
2015-12-30 16:59:21 +01:00
parent 9039e27b13
commit 65f26699a6
5 changed files with 18 additions and 12 deletions

View File

@@ -30,6 +30,11 @@ class ProjectMetadataTest extends Base
$this->assertEquals(array('key1' => 'value2'), $pm->getAll(1));
$this->assertEquals(array('key1' => 'value1', 'key2' => 'value2'), $pm->getAll(2));
$this->assertTrue($pm->remove(2, 'key1'));
$this->assertFalse($pm->remove(2, 'key1'));
$this->assertEquals(array('key2' => 'value2'), $pm->getAll(2));
}
public function testAutomaticRemove()