diff --git a/lib/Cake/Test/Case/View/Helper/FormHelperTest.php b/lib/Cake/Test/Case/View/Helper/FormHelperTest.php index 42618aafc..66b7b2be0 100644 --- a/lib/Cake/Test/Case/View/Helper/FormHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/FormHelperTest.php @@ -6009,6 +6009,23 @@ class FormHelperTest extends CakeTestCase { $this->assertEquals(array('save'), $result, 'Only submits with name attributes should be unlocked.'); } +/** + * Test submit image with timestamps. + * + * @return void + */ + function testSubmitImageTimestamp() { + Configure::write('Asset.timestamp', 'force'); + + $result = $this->Form->submit('cake.power.gif'); + $expected = array( + 'div' => array('class' => 'submit'), + 'input' => array('type' => 'image', 'src' => 'preg:/img\/cake\.power\.gif\?\d*/'), + '/div' + ); + $this->assertTags($result, $expected); + } + /** * test the create() method *