/**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     // Add a field to both entities.
     $this->addField('string', 'field_shared', 'user');
     $this->addField('string', 'field_shared', 'simplenews_subscriber');
     // Create a user.
     $this->user = $this->drupalCreateUser(array('administer simplenews subscriptions', 'administer simplenews settings'));
     $this->user->setEmail('*****@*****.**');
     $this->user->set('field_shared', $this->randomMachineName());
     $this->user->save();
 }
 /**
  * {@inheritdoc}
  */
 public function set($field_name, $value, $notify = TRUE)
 {
     return $this->subject->set($field_name, $value, $notify);
 }