public function test_it_fills_a_non_default_language_with_fallback_set()
 {
     App::make('config')->set('translatable.fallback_locale', 'en');
     $country = new Country();
     $country->fill(['code' => 'gr', 'en' => ['name' => 'Greece'], 'de' => ['name' => 'Griechenland']]);
     $this->assertEquals($country->translate('en')->name, 'Greece');
 }
 /**
  * @expectedException Illuminate\Database\Eloquent\MassAssignmentException
  */
 public function test_translation_throws_exception_if_filling_a_protected_property()
 {
     $country = new Country();
     $country->translationModel = Model\CountryTranslationGuarded::class;
     $country->fill(['code' => 'it', 'en' => ['name' => 'Italy']]);
 }