Exemplo n.º 1
0
 /**
  * @covers \CSanquer\FakeryGenerator\Config\FakerConfig::getConfig
  */
 public function testGetConfig()
 {
     $expected = ['locales' => ['en_US', 'es_ES', 'fr_FR'], 'providers' => ['Address', 'Company', 'Person'], 'methods' => ['departmentName' => ['name' => 'departmentName', 'provider' => 'Address', 'locale' => 'fr_FR', 'arguments' => [], 'example' => '\'Haut-Rhin\''], 'departmentNumber' => ['name' => 'departmentNumber', 'provider' => 'Address', 'locale' => 'fr_FR', 'arguments' => [], 'example' => '\'2B\''], 'siret' => ['name' => 'siret', 'provider' => 'Company', 'locale' => 'fr_FR', 'arguments' => ['sequential_digits' => 2], 'example' => '\'347 355 708 00224\''], 'firstName' => ['name' => 'firstName', 'provider' => 'Person', 'locale' => 'en_US', 'arguments' => [], 'example' => '\'Maynard\''], 'lastName' => ['name' => 'lastName', 'provider' => 'Person', 'locale' => 'en_US', 'arguments' => [], 'example' => '\'Zulauf\''], 'buildingNumber' => ['name' => 'buildingNumber', 'provider' => 'Address', 'locale' => 'en_US', 'arguments' => [], 'example' => '\'484\''], 'city' => ['name' => 'city', 'provider' => 'Address', 'locale' => 'en_US', 'arguments' => [], 'example' => '\'West Judge\''], 'streetName' => ['name' => 'streetName', 'provider' => 'Address', 'locale' => 'en_US', 'arguments' => [], 'example' => '\'Keegan Trail\''], 'postcode' => ['name' => 'postcode', 'provider' => 'Address', 'locale' => 'en_US', 'arguments' => [], 'example' => '\'17916\''], 'country' => ['name' => 'country', 'provider' => 'Address', 'locale' => 'en_US', 'arguments' => [], 'example' => '\'Falkland Islands (Malvinas)\'']]];
     $this->assertEquals($expected, $this->config->getConfig());
 }