Browse Source

updated expected exception message

tags/2.0.0-beta
Alexander Makarov 12 years ago
parent
commit
173706f516
  1. 2
      tests/unit/framework/base/ModelTest.php

2
tests/unit/framework/base/ModelTest.php

@ -195,7 +195,7 @@ class ModelTest extends TestCase
public function testCreateValidators()
{
$this->setExpectedException('yii\base\InvalidConfigException', 'Invalid validation rule: a rule must be an array specifying both attribute names and validator type.');
$this->setExpectedException('yii\base\InvalidConfigException', 'Invalid validation rule: a rule must specify both attribute names and validator type.');
$invalid = new InvalidRulesModel();
$invalid->createValidators();

Loading…
Cancel
Save