summaryrefslogtreecommitdiff
path: root/tests/units/ProjectActivityTest.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-12-31 15:30:21 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-12-31 15:30:21 -0500
commitc32567857db9bb1a6dfa339f58d817c97f64db11 (patch)
treea9a5524fdeab5d4c6b599ddd94ef7f2c2e610d65 /tests/units/ProjectActivityTest.php
parentee8ec7685f95125c385d17dad41369a549ce9bbf (diff)
Move activity event data to json instead of PHP serialization
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);