public function testInitializationAddsDefaultButtons() { $this->target->expects($this->exactly(2))->method('addButton')->withConsecutive(['Search', -1000, 'submit'], ['Clear', -1100, 'reset']); $this->target->init(); }
public function init() { parent::init(); $this->add(array('type' => 'Jobs/StatusSelect', 'options' => ['include_all_option' => true], 'attributes' => array('value' => 'all'))); $this->add(array('type' => 'Jobs/ActiveOrganizationSelect', 'property' => true, 'name' => 'companyId', 'options' => array('label' => 'Companyname'), 'attributes' => array('data-placeholder' => 'Select hiring organization', 'class' => 'form-control'))); }