From 9bf7f791b8d9be86eb0774b9ed8f1dc9ce64f83b Mon Sep 17 00:00:00 2001 From: slavcodev Date: Tue, 12 Nov 2013 17:53:24 +0200 Subject: [PATCH] Fix test --- tests/unit/framework/validators/ValidatorTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/framework/validators/ValidatorTest.php b/tests/unit/framework/validators/ValidatorTest.php index 7a0258d..5e5385b 100644 --- a/tests/unit/framework/validators/ValidatorTest.php +++ b/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); }