From 0ba769f4436a9826e47c0076874e1984fb8cba51 Mon Sep 17 00:00:00 2001 From: phpnut Date: Wed, 30 May 2007 01:21:58 +0000 Subject: [PATCH] Correcting date string in tests git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5224 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/tests/cases/libs/view/helpers/form.test.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cake/tests/cases/libs/view/helpers/form.test.php b/cake/tests/cases/libs/view/helpers/form.test.php index d98a3c92e..5a5a3c3c4 100644 --- a/cake/tests/cases/libs/view/helpers/form.test.php +++ b/cake/tests/cases/libs/view/helpers/form.test.php @@ -579,7 +579,7 @@ class FormHelperTest extends CakeTestCase { $this->assertPattern('/option value="12"/', $result); $this->assertPattern('/option value="13"/', $result); - $this->Form->data['Model']['field'] = '10-10-2006 23:12:32'; + $this->Form->data['Model']['field'] = '2006-10-10 23:12:32'; $result = $this->Form->day('Model.field'); $this->assertPattern('/option value="10" selected="selected"/', $result); $this->assertNoPattern('/option value="32"/', $result); @@ -590,7 +590,7 @@ class FormHelperTest extends CakeTestCase { $this->assertPattern('/option value="23"/', $result); $this->assertPattern('/option value="24"/', $result); - $this->Form->data['Model']['field'] = '10-10-2006 23:12:32'; + $this->Form->data['Model']['field'] = '2006-10-10 23:12:32'; $result = $this->Form->day('Model.field', true); $this->assertPattern('/option value="10" selected="selected"/', $result); $this->assertPattern('/option value="23"/', $result); @@ -602,7 +602,7 @@ class FormHelperTest extends CakeTestCase { $this->assertPattern('/option value="12"/', $result); $this->assertNoPattern('/option value="13"/', $result); - $this->Form->data['Model']['field'] = '10-10-2006 00:12:32'; + $this->Form->data['Model']['field'] = '2006-10-10 00:12:32'; $result = $this->Form->hour('Model.field', false); $this->assertPattern('/option value="12" selected="selected"/', $result); $this->assertNoPattern('/option value="13"/', $result); @@ -612,7 +612,7 @@ class FormHelperTest extends CakeTestCase { $this->assertPattern('/option value="23"/', $result); $this->assertNoPattern('/option value="24"/', $result); - $this->Form->data['Model']['field'] = '10-10-2006 00:12:32'; + $this->Form->data['Model']['field'] = '2006-10-10 00:12:32'; $result = $this->Form->hour('Model.field', true); $this->assertPattern('/option value="23"/', $result); $this->assertPattern('/option value="00" selected="selected"/', $result); @@ -631,7 +631,7 @@ class FormHelperTest extends CakeTestCase { $expecting = ""; $this->assertEqual($result, $expecting); - $this->Form->data['Model']['field'] = '10-10-2006'; + $this->Form->data['Model']['field'] = '2006-10-10'; $result = $this->Form->year('Model.field', 2006, 2007, null, array(), false); $expecting = ""; $this->assertEqual($result, $expecting); @@ -641,7 +641,7 @@ class FormHelperTest extends CakeTestCase { $expecting = ""; $this->assertEqual($result, $expecting); - $this->Form->data['Model']['field'] = '10-10-2006'; + $this->Form->data['Model']['field'] = '2006-10-10'; $result = $this->Form->year('Model.field', 2006, 2007, false, array(), false); $expecting = ""; $this->assertEqual($result, $expecting); @@ -651,7 +651,7 @@ class FormHelperTest extends CakeTestCase { $expecting = ""; $this->assertEqual($result, $expecting); - $this->Form->data['Model']['field'] = '10-10-2006'; + $this->Form->data['Model']['field'] = '2006-10-10'; $result = $this->Form->year('Model.field', 2006, 2007, '2007', array(), false); $expecting = ""; $this->assertEqual($result, $expecting); @@ -661,7 +661,7 @@ class FormHelperTest extends CakeTestCase { $expecting = ""; $this->assertEqual($result, $expecting); - $this->Form->data['Model']['field'] = '10-10-2006'; + $this->Form->data['Model']['field'] = '2006-10-10'; $result = $this->Form->year('Model.field', 2006, 2008, null, array(), false); $expecting = ""; $this->assertEqual($result, $expecting);