I'm working on my lightning component page which uses a controller class and I have these lines of code in the controller class:
@AuraEnabled
public static List<SelectOption> typePicklistValue(){...}
which is a picklist dropdown in my lightning component.
Is it possible to assign a value on it in my test class? I tried doing this in the test class:
List<lightningComponentController.SelectOption> result = lightningComponentController.typePicklistValue(SelectOption:[label=Global, selected=true, value=Global]);
but it doesnt work. I'm just trying it anyway but is there a way to put a value on it? is it even possible?