Commit b9c08712 by Alexander Pletnev

tabs vs spaces

parent 40cb98bb
...@@ -107,7 +107,6 @@ class FileValidatorTest extends TestCase ...@@ -107,7 +107,6 @@ class FileValidatorTest extends TestCase
$val->validateAttribute($m, 'attr_files'); $val->validateAttribute($m, 'attr_files');
$this->assertTrue($m->hasErrors()); $this->assertTrue($m->hasErrors());
$this->assertTrue(stripos(current($m->getErrors('attr_files')), 'you can upload at most') !== false); $this->assertTrue(stripos(current($m->getErrors('attr_files')), 'you can upload at most') !== false);
$m = FakedValidationModel::createWithAttributes( $m = FakedValidationModel::createWithAttributes(
[ [
'attr_images' => $this->createTestFiles( 'attr_images' => $this->createTestFiles(
...@@ -132,7 +131,8 @@ class FileValidatorTest extends TestCase ...@@ -132,7 +131,8 @@ class FileValidatorTest extends TestCase
); );
$m->setScenario('validateMultipleFiles'); $m->setScenario('validateMultipleFiles');
$this->assertFalse($m->validate()); $this->assertFalse($m->validate());
$this->assertTrue(stripos(current($m->getErrors('attr_images')), 'Only files with these extensions are allowed') !== false); $this->assertTrue(stripos(current($m->getErrors('attr_images')),
'Only files with these extensions are allowed') !== false);
$m = FakedValidationModel::createWithAttributes( $m = FakedValidationModel::createWithAttributes(
[ [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment