Merge pull request #2705 from RusAlex/140311_tabs_vs_spaces

tabs vs spaces
This commit is contained in:
Carsten Brandt
2014-03-11 20:19:11 +01:00
2 changed files with 63 additions and 63 deletions

View File

@@ -107,7 +107,6 @@ class FileValidatorTest extends TestCase
$val->validateAttribute($m, 'attr_files');
$this->assertTrue($m->hasErrors());
$this->assertTrue(stripos(current($m->getErrors('attr_files')), 'you can upload at most') !== false);
$m = FakedValidationModel::createWithAttributes(
[
'attr_images' => $this->createTestFiles(
@@ -132,7 +131,8 @@ class FileValidatorTest extends TestCase
);
$m->setScenario('validateMultipleFiles');
$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(
[