Commit 67e2754e by Alexander Makarov

Merge pull request #5669 from aivus/patch-1

Fix faker test. Add `ё` to regexp
parents 998076d0 0f5f8e27
...@@ -137,7 +137,7 @@ class FixtureControllerTest extends TestCase ...@@ -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()
......
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