Browse Source

Fix test

tags/2.0.0-beta
slavcodev 11 years ago
parent
commit
35681c618b
  1. 6
      tests/unit/framework/validators/ValidatorTest.php

6
tests/unit/framework/validators/ValidatorTest.php

@ -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
$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);

Loading…
Cancel
Save