summaryrefslogtreecommitdiff
path: root/tests/units/ProjectActivityTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/units/ProjectActivityTest.php')
-rw-r--r--tests/units/ProjectActivityTest.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/units/ProjectActivityTest.php b/tests/units/ProjectActivityTest.php
index 67d94ecf..e70dfb0e 100644
--- a/tests/units/ProjectActivityTest.php
+++ b/tests/units/ProjectActivityTest.php
@@ -10,6 +10,17 @@ use Model\Project;
class ProjectActivityTest extends Base
{
+ public function testDecode()
+ {
+ $e = new ProjectActivity($this->container);
+ $input = array('test');
+ $serialized = serialize($input);
+ $json = json_encode($input);
+
+ $this->assertEquals($input, $e->decode($serialized));
+ $this->assertEquals($input, $e->decode($json));
+ }
+
public function testCreation()
{
$e = new ProjectActivity($this->container);