Browse Source

Making a test more specific.

Mark Story 15 years ago
parent
commit
96cc1b98b4
1 changed files with 4 additions and 4 deletions
  1. 4 4
      lib/Cake/Test/Case/View/Helper/FormHelperTest.php

+ 4 - 4
lib/Cake/Test/Case/View/Helper/FormHelperTest.php

@@ -1528,12 +1528,12 @@ class FormHelperTest extends CakeTestCase {
 		));
 		$result = $this->Form->input('Contact.2.name');
 		$expected = array(
-			'div' => array('class'),
-			'label' => array('for'),
-			'preg:/[^<]+/',
+			'div' => array('class' => 'input text error'),
+			'label' => array('for' => 'Contact2Name'),
+			'Name',
 			'/label',
 			'input' => array(
-				'type' => 'text', 'name', 'id',
+				'type' => 'text', 'name' => 'data[Contact][2][name]', 'id' => 'Contact2Name',
 				'class' => 'form-error', 'maxlength' => 255
 			),
 			array('div' => array('class' => 'error-message')),