private function createCountries($countries)
 {
     foreach ($countries as $data) {
         $country = new Country();
         $country->id = $data['id'];
         $country->code = $data['code'];
         $country->save();
     }
 }
 public function test_getting_translated_field_does_not_create_translation()
 {
     $this->app->setLocale('en');
     $country = new Country(['code' => 'pl']);
     $country->save();
     $country->name;
     $this->assertSame($country->getTranslation('en'), null);
 }
 public function test_to_array_wont_break_if_no_translations_exist()
 {
     $country = new Country(['code' => 'test']);
     $country->save();
     $country->toArray();
 }