Commit 35e7f27d by Qiang Xue

Fixes test break.

parent cb90f31c
...@@ -301,8 +301,8 @@ EOD; ...@@ -301,8 +301,8 @@ EOD;
} }
$actualValue = $this->activeField->getClientOptions(); $actualValue = $this->activeField->getClientOptions();
$expectedJsExpression = "function (attribute, value, messages, deferred) {if (function (attribute, value) " $expectedJsExpression = "function (attribute, value, messages, deferred) {if ((function (attribute, value) "
. "{ return 'yii2' == 'yii2'; }(attribute, value)) { return true; }}"; . "{ return 'yii2' == 'yii2'; })(attribute, value)) { return true; }}";
$this->assertEquals($expectedJsExpression, $actualValue['validate']->expression); $this->assertEquals($expectedJsExpression, $actualValue['validate']->expression);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment