|
|
@@ -138,6 +138,10 @@ class Zend_Dojo_View_Helper_NumberSpinnerTest extends PHPUnit_Framework_TestCase
|
|
|
$this->fail('Did not serialize constraints');
|
|
|
}
|
|
|
$constraints = str_replace("'", '"', $m[1]);
|
|
|
+ if (Zend_Dojo_View_Helper_Dojo::useDeclarative()) {
|
|
|
+ // Convert ' to "'" for json_decode. See Zend_Dojo_View_Helper_Dijit::_prepareDijit() (line 254)
|
|
|
+ $constraints = str_replace(''', '"', $constraints);
|
|
|
+ }
|
|
|
$constraints = Zend_Json::decode($constraints);
|
|
|
$this->assertTrue(is_array($constraints), var_export($m[1], 1));
|
|
|
$this->assertTrue(array_key_exists('min', $constraints));
|