|
|
@@ -658,7 +658,7 @@ class FormHelperTest extends TestCase
|
|
|
$this->article['defaults'] = ['id' => 1];
|
|
|
$this->Form->request->here = '/articles/edit/1';
|
|
|
$this->Form->request['action'] = 'delete';
|
|
|
- $result = $this->Form->create($this->article, ['action' => 'edit']);
|
|
|
+ $result = $this->Form->create($this->article, ['url' => ['action' => 'edit']]);
|
|
|
$expected = [
|
|
|
'form' => [
|
|
|
'method' => 'post',
|
|
|
@@ -695,7 +695,7 @@ class FormHelperTest extends TestCase
|
|
|
$this->assertHtml($expected, $result);
|
|
|
|
|
|
$this->Form->request['controller'] = 'Pages';
|
|
|
- $result = $this->Form->create($this->article, ['action' => 'signup']);
|
|
|
+ $result = $this->Form->create($this->article, ['url' => ['action' => 'signup']]);
|
|
|
$expected = [
|
|
|
'form' => [
|
|
|
'method' => 'post', 'action' => '/Pages/signup/1',
|
|
|
@@ -726,9 +726,6 @@ class FormHelperTest extends TestCase
|
|
|
'/div'
|
|
|
];
|
|
|
$this->assertHtml($expected, $result);
|
|
|
-
|
|
|
- $result = $this->Form->create(false, ['action' => false]);
|
|
|
- $this->assertHtml($expected, $result);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -743,7 +740,7 @@ class FormHelperTest extends TestCase
|
|
|
|
|
|
$this->Form->request['controller'] = 'users';
|
|
|
|
|
|
- $result = $this->Form->create(false, ['action' => 'login']);
|
|
|
+ $result = $this->Form->create(false, ['url' => ['action' => 'login']]);
|
|
|
$expected = [
|
|
|
'form' => [
|
|
|
'method' => 'post', 'action' => '/login',
|
|
|
@@ -783,7 +780,7 @@ class FormHelperTest extends TestCase
|
|
|
$result = $this->Form->create(
|
|
|
$this->article,
|
|
|
[
|
|
|
- 'type' => 'post', 'action' => 'index', 'encoding' => 'iso-8859-1'
|
|
|
+ 'type' => 'post', 'url' => ['action' => 'index'], 'encoding' => 'iso-8859-1'
|
|
|
]
|
|
|
);
|
|
|
$expected = [
|