diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-12-31 15:30:21 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-12-31 15:30:21 -0500 |
commit | c32567857db9bb1a6dfa339f58d817c97f64db11 (patch) | |
tree | a9a5524fdeab5d4c6b599ddd94ef7f2c2e610d65 /tests/units/ProjectActivityTest.php | |
parent | ee8ec7685f95125c385d17dad41369a549ce9bbf (diff) |
Move activity event data to json instead of PHP serialization
Diffstat (limited to 'tests/units/ProjectActivityTest.php')
-rw-r--r-- | tests/units/ProjectActivityTest.php | 11 |
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); |