summaryrefslogtreecommitdiff
path: root/modules/gallery_unit_test
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery_unit_test')
-rw-r--r--modules/gallery_unit_test/libraries/Gallery_Unit_Test_Case.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gallery_unit_test/libraries/Gallery_Unit_Test_Case.php b/modules/gallery_unit_test/libraries/Gallery_Unit_Test_Case.php
index 81bd3330..509b4125 100644
--- a/modules/gallery_unit_test/libraries/Gallery_Unit_Test_Case.php
+++ b/modules/gallery_unit_test/libraries/Gallery_Unit_Test_Case.php
@@ -29,4 +29,8 @@ class Gallery_Unit_Test_Case extends Unit_Test_Case {
}
return $this;
}
+
+ public function assert_array_equal_to_json($expected_array, $actual_json, $debug=null) {
+ return $this->assert_equal_array($expected_array, json_decode($actual_json, true), $debug);
+ }
}