|
@@ 7448-7455 (lines=8) @@
|
| 7445 |
|
* |
| 7446 |
|
* @return void |
| 7447 |
|
*/ |
| 7448 |
|
public function testButtonUnlockedByDefault() { |
| 7449 |
|
$this->Form->request->params['_Token']['key'] = 'secured'; |
| 7450 |
|
$this->Form->button('Save', array('name' => 'save')); |
| 7451 |
|
$this->Form->button('Clear'); |
| 7452 |
|
|
| 7453 |
|
$result = $this->Form->unlockField(); |
| 7454 |
|
$this->assertEquals(array('save'), $result); |
| 7455 |
|
} |
| 7456 |
|
|
| 7457 |
|
/** |
| 7458 |
|
* testPostButton method |
|
@@ 7911-7918 (lines=8) @@
|
| 7908 |
|
* |
| 7909 |
|
* @return void |
| 7910 |
|
*/ |
| 7911 |
|
public function testSubmitUnlockedByDefault() { |
| 7912 |
|
$this->Form->request->params['_Token']['key'] = 'secured'; |
| 7913 |
|
$this->Form->submit('Go go'); |
| 7914 |
|
$this->Form->submit('Save', array('name' => 'save')); |
| 7915 |
|
|
| 7916 |
|
$result = $this->Form->unlockField(); |
| 7917 |
|
$this->assertEquals(array('save'), $result, 'Only submits with name attributes should be unlocked.'); |
| 7918 |
|
} |
| 7919 |
|
|
| 7920 |
|
/** |
| 7921 |
|
* Test submit image with timestamps. |