mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Fix faker test. Add ё
to regexp
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user