/** * @param $type * @return null | string */ public static function renderNonEditableTypeStringContent($type) { assert('is_string($type)'); $typesAndLabels = Workflow::getTypeDropDownArray(); if (isset($typesAndLabels[$type])) { return $typesAndLabels[$type]; } }
/** * @return array */ protected function getDropDownArray() { return Workflow::getTypeDropDownArray(); }
public function testGetTypeDropDownArray() { $dropDownArray = Workflow::getTypeDropDownArray(); $this->assertCount(2, $dropDownArray); }