mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Modified test to use accented characters.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7345 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
993bee59fa
commit
c19e7ff3da
1 changed files with 2 additions and 2 deletions
|
@ -1383,7 +1383,7 @@ class FormHelperTest extends CakeTestCase {
|
|||
|
||||
|
||||
$this->Form->validationErrors['Model']['field'] = 'minLength';
|
||||
$result = $this->Form->input('Model.field', array('error' => array('minLength' => __('too short', true))));
|
||||
$result = $this->Form->input('Model.field', array('error' => array('minLength' => __('Le login doit contenir au moins 2 caractères', true))));
|
||||
$expected = array(
|
||||
'div' => array('class' => 'input text error'),
|
||||
'label' => array('for' => 'ModelField'),
|
||||
|
@ -1391,7 +1391,7 @@ class FormHelperTest extends CakeTestCase {
|
|||
'/label',
|
||||
'input' => array('type' => 'text', 'name' => 'data[Model][field]', 'value' => '', 'id' => 'ModelField', 'class' => 'form-error'),
|
||||
array('div' => array('class' => 'error-message')),
|
||||
'too short',
|
||||
'Le login doit contenir au moins 2 caractères',
|
||||
'/div',
|
||||
'/div'
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue