Commit: e8d3ea088c2f68a6695336ba7d382bdb102fa67f
Author: LancerForHire | Date: 2011-03-15 17:08:28 +0000
diff --git a/libraries/lithium/tests/cases/storage/session/adapter/CookieTest.php b/libraries/lithium/tests/cases/storage/session/adapter/CookieTest.php
index e6174f7..1ddaaf5 100644
--- a/libraries/lithium/tests/cases/storage/session/adapter/CookieTest.php
+++ b/libraries/lithium/tests/cases/storage/session/adapter/CookieTest.php
@@ -216,6 +216,16 @@ class CookieTest extends \lithium\test\Unit {
$result = $cookie->write($key, $value)->__invoke($cookie, compact('key', 'value'), null);
$this->assertCookie(compact('key', 'value'));
}
+
+ public function testNestedArrayCookie() {
+ $key = 'key';
+ $value = array('value' => array('val_1', 'val_2'));
+ $closure = $this->cookie->write($key, $value);
+
+ $params = compact('key', 'value');
+ $result = $closure($this->cookie, $params, null);
+ $this->assertCookie(compact('key', 'value'));
+ }
}
?>
\ No newline at end of file