public function testSetGetName()
 {
     $this->model->setName('Test Name');
     $this->assertSame('Test Name', $this->model->getName());
 }
Exemplo n.º 2
0
 /**
  * @param TemplateModel $object
  * @return array
  */
 public function extract($object)
 {
     return ['templateId' => $object->getTemplateId(), 'name' => $object->getName(), 'params' => $object->getParams(), 'body' => $object->getBody()];
 }