Commit 5bbceebc by Carsten Brandt

Merge pull request #2705 from RusAlex/140311_tabs_vs_spaces

tabs vs spaces
parents 7870d02e b9c08712
......@@ -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(
[
......
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