mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 23:09:10 +08:00
Merge pull request #2705 from RusAlex/140311_tabs_vs_spaces
tabs vs spaces
This commit is contained in:
@@ -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(
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user