소스 검색

[ZF-8784] Zend_Form:

- fixed unit tests

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20214 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas 16 년 전
부모
커밋
b3ba34d309
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      tests/Zend/Form/ElementTest.php

+ 2 - 2
tests/Zend/Form/ElementTest.php

@@ -1692,7 +1692,7 @@ class Zend_Form_ElementTest extends PHPUnit_Framework_TestCase
 
 
         $options = $this->getOptions();
         $options = $this->getOptions();
         $options['validators'] = array(
         $options['validators'] = array(
-            array('notEmpty', true, array('bar')),
+            array('notEmpty', true, array(Zend_Validate_NotEmpty::ALL)),
             array('digits', true, array('bar')),
             array('digits', true, array('bar')),
         );
         );
         $this->element->setOptions($options);
         $this->element->setOptions($options);
@@ -1711,7 +1711,7 @@ class Zend_Form_ElementTest extends PHPUnit_Framework_TestCase
         $options = $this->getOptions();
         $options = $this->getOptions();
         $options['validators'] = array(
         $options['validators'] = array(
             array(
             array(
-                'options'             => array('bar'),
+                'options'             => array(Zend_Validate_NotEmpty::ALL),
                 'breakChainOnFailure' => true,
                 'breakChainOnFailure' => true,
                 'validator'           => 'notEmpty',
                 'validator'           => 'notEmpty',
             ),
             ),