Open dotus-ru opened 5 years ago
Wrong ru_RU locale street name ($faker->streetName) generation, plus $faker->streetSuffix return only 'Street'
fzaninotto/faker
$faker->streetName
пер. Ленина шоссе Чехова ул. Ленина
Денисов Street Русаков Street Филатов Street
Solution: in ru_RU/Address.php add
protected static $streetNameFormats = array( '{{streetPrefix}} {{street}}' ); public function streetName() { $format = static::randomElement(static::$streetNameFormats); return $this->generator->parse($format); }
How should I write the test case is there any example or guide?
Summary
Wrong ru_RU locale street name ($faker->streetName) generation, plus $faker->streetSuffix return only 'Street'
Versions
fzaninotto/faker
Self-enclosed code snippet for reproduction
Expected output
Actual output
Solution: in ru_RU/Address.php add