public function testSetGetName()
 {
     $this->model->setName('Joe Bloggs');
     $this->assertSame('Joe Bloggs', $this->model->getName());
 }
Пример #2
0
 /**
  * @param \UthandoNewsletter\Model\Subscriber $object
  * @return array
  */
 public function extract($object)
 {
     return ['subscriberId' => $object->getSubscriberId(), 'name' => $object->getName(), 'email' => $object->getEmail(), 'dateCreated' => $this->extractValue('dateCreated', $object->getDateCreated())];
 }