/**
  * @test
  */
 public function it_creates_translations_using_mass_assignment_and_locales()
 {
     $data = array('iso' => 'be', 'en' => ['name' => 'Belgium'], 'fr' => ['name' => 'Belgique']);
     $country = Country::create($data);
     $this->assertEquals('be', $country->iso);
     $this->assertEquals('Belgium', $country->translate('en')->name);
     $this->assertEquals('Belgique', $country->translate('fr')->name);
     $country = Country::whereIso('be')->first();
     $this->assertEquals('Belgium', $country->translate('en')->name);
     $this->assertEquals('Belgique', $country->translate('fr')->name);
 }