[limb-svn] r7107 - 3.x/trunk/limb/validation/tests/cases/rule
svn at limb-project.com
svn at limb-project.com
Thu Jul 10 00:05:52 MSD 2008
Author: conf
Date: 2008-07-10 00:05:52 +0400 (Thu, 10 Jul 2008)
New Revision: 7107
URL: http://fisheye.limb-project.com/changelog/limb/?cs=7107
Modified:
3.x/trunk/limb/validation/tests/cases/rule/lmbUrlRuleTest.class.php
Log:
-- added broken test for lmbUrlRule (does this rule work at all?)
Modified: 3.x/trunk/limb/validation/tests/cases/rule/lmbUrlRuleTest.class.php
===================================================================
--- 3.x/trunk/limb/validation/tests/cases/rule/lmbUrlRuleTest.class.php 2008-07-09 20:03:37 UTC (rev 7106)
+++ 3.x/trunk/limb/validation/tests/cases/rule/lmbUrlRuleTest.class.php 2008-07-09 20:05:52 UTC (rev 7107)
@@ -111,6 +111,19 @@
$rule->validate($dataspace, $this->error_list);
}
+
+ function testUrlRuleWithBadTextWithoutAllowableSchemes()
+ {
+ $rule = new lmbUrlRule('testfield');
+
+ $dataspace = new lmbSet();
+ $dataspace->set('testfield', 'as@#$@$%ADGasjdkjf');
+
+ $this->error_list->expectOnce('addError');
+
+ $rule->validate($dataspace, $this->error_list);
+ }
+
}
More information about the limb-svn
mailing list