Example #1
0
 public function testField()
 {
     $field = new Field('key', 'val');
     $field->setChangeMessage('change-message')->setTextAlignment(Field::ALIGN_RIGHT);
     $array = $field->toArray();
     $this->assertArrayHasKey('key', $array);
 }