Fix faker test. Add ё to regexp

This commit is contained in:
Ilya Antipenko
2014-10-20 18:33:24 +03:00
parent 998076d0c8
commit 0f5f8e27ae

View File

@ -137,7 +137,7 @@ class FixtureControllerTest extends TestCase
$this->assertFileExists($filename, 'fixture template file should be generated'); $this->assertFileExists($filename, 'fixture template file should be generated');
$generatedData = require Yii::getAlias('@runtime/faker/profile.php'); $generatedData = require Yii::getAlias('@runtime/faker/profile.php');
$this->assertEquals(1, preg_match('/^[а-я]*$/iu', $generatedData[0]['first_name']), 'generated value should be in ru-RU language'); $this->assertEquals(1, preg_match('/^[аё]*$/iu', $generatedData[0]['first_name']), 'generated value should be in ru-RU language');
} }
public function testGenerateAll() public function testGenerateAll()