Commit 35681c61 by slavcodev

Fix test

parent ecc557ef
......@@ -39,7 +39,7 @@ class ValidatorTest extends TestCase
$val = TestValidator::createValidator(
'boolean',
$model,
'attr_test1, attr_test2',
['attr_test1', 'attr_test2'],
['on' => ['a', 'b']]
);
$this->assertInstanceOf(BooleanValidator::className(), $val);
......@@ -48,8 +48,8 @@ class ValidatorTest extends TestCase
$val = TestValidator::createValidator(
'boolean',
$model,
'attr_test1, attr_test2',
['on' => 'a, b', 'except' => 'c,d,e']
['attr_test1', 'attr_test2'],
['on' => ['a', 'b'], 'except' => ['c', 'd', 'e']]
);
$this->assertInstanceOf(BooleanValidator::className(), $val);
$this->assertSame(['a', 'b'], $val->on);
......
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