protected function addContent()
 {
     $faker = Faker\Factory::create();
     $data = ['libelle' => $faker->realText(20), 'body_type' => \Distilleries\Expendable\Helpers\StaticLabel::BODY_TYPE_HTML, 'action' => uniqid(), 'cc' => $faker->email, 'bcc' => $faker->email, 'content' => $faker->text(), 'status' => \Distilleries\Expendable\Helpers\StaticLabel::STATUS_ONLINE];
     $result = \Distilleries\Expendable\Models\Email::create($data);
     \Distilleries\Expendable\Models\Translation::create(['id_element' => $result->id, 'model' => $result->getTable(), 'id_source' => 0, 'iso' => app()->getLocale()]);
     $result = \Distilleries\Expendable\Models\Email::find($result->id);
     return [$data, $result];
 }
 public function testDestroy()
 {
     $faker = Faker\Factory::create();
     $data = ['libelle' => str_replace('\'', '', $faker->realText(20)), 'body_type' => \Distilleries\Expendable\Helpers\StaticLabel::BODY_TYPE_HTML, 'action' => 'emails.password', 'cc' => $faker->email, 'bcc' => $faker->email, 'content' => str_replace('\'', '', $faker->text()), 'status' => \Distilleries\Expendable\Helpers\StaticLabel::STATUS_ONLINE];
     $email = \Distilleries\Expendable\Models\Email::create($data);
     \Distilleries\Expendable\Models\Translation::create(['id_element' => $email->id, 'model' => 'emails', 'id_source' => 0, 'iso' => app()->getLocale()]);
     $this->call('PUT', action($this->controller . '@putDestroy'), ['id' => $email->id]);
     $newEmail = \Distilleries\Expendable\Models\Email::find($email->id);
     $this->assertEquals(null, $newEmail);
 }