Browse Source

Fix test

tags/2.0.0-beta
slavcodev 11 years ago
parent
commit
9bf7f791b8
  1. 2
      tests/unit/framework/validators/ValidatorTest.php

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

@ -54,7 +54,7 @@ class ValidatorTest extends TestCase
$this->assertInstanceOf(BooleanValidator::className(), $val);
$this->assertSame(['a', 'b'], $val->on);
$this->assertSame(['c', 'd', 'e'], $val->except);
$val = TestValidator::createValidator('inlineVal', $model, 'val_attr_a');
$val = TestValidator::createValidator('inlineVal', $model, ['val_attr_a']);
$this->assertInstanceOf(InlineValidator::className(), $val);
$this->assertSame('inlineVal', $val->method);
}

Loading…
Cancel
Save