From c32567857db9bb1a6dfa339f58d817c97f64db11 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Wed, 31 Dec 2014 15:30:21 -0500 Subject: Move activity event data to json instead of PHP serialization --- tests/units/ProjectActivityTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests') 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); -- cgit v1.2.3