Commit 35681c61 by slavcodev

Fix test

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