toContain("if ($('#criticality').length)"); expect($html)->toContain('return;'); }); it('injects the criticality select with the requested value marked selected', function () { $GLOBALS['__test_selected_theme'] = 'modern'; $GLOBALS['__test_request']['criticality'] = '2'; $html = monitor_render_device_table_bottom(); expect($html)->toContain(''); unset($GLOBALS['__test_selected_theme']); });