Browse Source

fixed test break.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
b23bade285
  1. 2
      tests/unit/framework/validators/FileValidatorTest.php

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

@ -189,7 +189,7 @@ class FileValidatorTest extends TestCase
$val = new FileValidator();
$val->validateAttribute($m, 'attr_err_ini');
$this->assertTrue($m->hasErrors('attr_err_ini'));
$this->assertTrue(stripos(current($m->getErrors('attr_files')), 'too big') !== false);
$this->assertTrue(stripos(current($m->getErrors('attr_err_ini')), 'too big') !== false);
// UPLOAD_ERR_PARTIAL
$m = $this->createModelForAttributeTest();
$val = new FileValidator();

Loading…
Cancel
Save