Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding test for form->submit() and timestamps.

Conflicts:

	lib/Cake/Test/Case/View/Helper/FormHelperTest.php
  • Loading branch information...
commit edfb0884c89f69b77fae045983251f5ea1c92192 1 parent 30504ef
@markstory markstory authored
Showing with 17 additions and 0 deletions.
  1. +17 −0 lib/Cake/Test/Case/View/Helper/FormHelperTest.php
View
17 lib/Cake/Test/Case/View/Helper/FormHelperTest.php
@@ -6010,6 +6010,23 @@ public function testSubmitUnlockedByDefault() {
}
/**
+ * 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
*
* @return void
Please sign in to comment.
Something went wrong with that request. Please try again.