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