Esempio n. 1
0
 public function testToOptionArray()
 {
     $this->assertNotEmpty($this->_collection->toOptionArray());
     foreach ($this->_collection->toOptionArray() as $item) {
         $this->assertArrayHasKey('value', $item);
         $this->assertArrayHasKey('label', $item);
     }
 }
Esempio n. 2
0
 /**
  * Prepare select for load
  *
  * @return $this
  */
 protected function _initSelect()
 {
     parent::_initSelect();
     $this->addFieldToFilter('role_type', RoleGroup::ROLE_TYPE);
     return $this;
 }