Exemple #1
0
 public function testapplyDecoratorAttributes()
 {
     // decorator type will be form
     // this is just another way of setting attributes to the form itself
     $attributes = array('form' => array('form' => array('heading' => 'This is the Heading of the form.', 'description' => 'This is a form description text.')));
     $this->form->setDecoratorAttributesArray($attributes);
     $this->form->registerDefaultFormDecorators();
     $this->form->applyDecoratorAttributes();
     $form_decorator_form = $this->form->getDecorator('form');
     $this->assertIdentical('This is the Heading of the form.', $form_decorator_form->heading);
     $this->assertIdentical('This is a form description text.', $form_decorator_form->description);
 }