public class MyController {
@AuraEnabled
public static Account getAccount(String accId){
Account acc = [SELECT Id,Name FROM Account WHERE Id =: accId];
return acc;
}
}
@isTest
public class MyController{
@isTest
static void getAccountTest(){
MyController a = new MyController()
Account acc = a.getAccount();
// verify the output
System.assertEquals(1, acc.size(), 'expecting to find 1 Account');
}
}
//Method does not exist or incorrect signature: void getAccount() from the type MyController
//Method does not exist or incorrect signature: void size() from the type Account