[limb-svn] r5547 - 3.x/trunk/limb/view/tests/cases
svn at limb-project.com
svn at limb-project.com
Fri Apr 6 10:47:15 MSD 2007
Author: pachanga
Date: 2007-04-06 10:47:15 +0400 (Fri, 06 Apr 2007)
New Revision: 5547
URL: http://fisheye.limb-project.com/changelog/limb/?cs=5547
Modified:
3.x/trunk/limb/view/tests/cases/lmbWactViewTest.class.php
Log:
-- tests fixed
Modified: 3.x/trunk/limb/view/tests/cases/lmbWactViewTest.class.php
===================================================================
--- 3.x/trunk/limb/view/tests/cases/lmbWactViewTest.class.php 2007-04-06 06:14:34 UTC (rev 5546)
+++ 3.x/trunk/limb/view/tests/cases/lmbWactViewTest.class.php 2007-04-06 06:47:15 UTC (rev 5547)
@@ -47,11 +47,11 @@
$view->setTemplate($path);
$view->set('hello', 'Hello world!');
- $error_list1 = new lmbErrorList();
- $error_list1->addError('An error in {Field} with {Value}', array('Field' => 'title'), array('Value' => 'value'));
- $form1->error_list = $error_list1;
+ $error_list = new lmbErrorList();
+ $error_list->addError('An error in {Field} with {Value}', array('Field' => 'title'), array('Value' => 'value'));
+
$view->setFormDatasource('form1', $form1 = new lmbDataspace());
- $view->setFormErrors('form1', $error_list1);
+ $view->setFormErrors('form1', $error_list);
$view->setFormDatasource('form2', $form2 = new lmbDataspace());
@@ -63,7 +63,7 @@
$template = $view->getWACTTemplate();
$form1_component = $template->findChild('form1');
$this->assertEqual($form1_component->getDatasource(), $form1);
- $this->assertEqual($form1_component->getErrorsDataSet()->export(), $error_list1->getReadable()->export());
+ $this->assertEqual($form1_component->getErrorsDataSet()->export(), $error_list->getReadable()->export());
$this->assertEqual($form1_component->getErrorsDataSet()->at(0)->getMessage(),
'An error in "Title" with value');
More information about the limb-svn
mailing list