Commit 0f5f8e27 by Ilya Antipenko

Fix faker test. Add `ё` to regexp

parent 998076d0
......@@ -137,7 +137,7 @@ class FixtureControllerTest extends TestCase
$this->assertFileExists($filename, 'fixture template file should be generated');
$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()
......
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