/** * Get Javascript variables setup for user date format validation * @deprecated moved to SugarView * @return string JS code */ function get_javascript_validation() { return SugarView::getJavascriptValidation(); }
public function testgetJavascriptValidation() { //check if it returns any text i-e JS code $js = SugarView::getJavascriptValidation(); $this->assertGreaterThan(0, strlen($js)); }