|
|
@@ -196,6 +196,18 @@ class Zend_Dojo_Form_Element_DateTextBoxTest extends PHPUnit_Framework_TestCase
|
|
|
$html = $this->element->render();
|
|
|
$this->assertContains('dojoType="dijit.form.DateTextBox"', $html);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @group ZF-7813
|
|
|
+ */
|
|
|
+ public function testCanSetValue()
|
|
|
+ {
|
|
|
+ $this->element->setValue('2011-05-10');
|
|
|
+ $html = $this->element->render();
|
|
|
+
|
|
|
+ $this->assertSame('2011-05-10', $this->element->getValue());
|
|
|
+ $this->assertContains('value="2011-05-10"', $html);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// Call Zend_Dojo_Form_Element_DateTextBoxTest::main() if this source file is executed directly.
|