How to write unitest for the function that using SugarQuery object? <?php function getAccounts() { $sugarQuery = new SugarQuery(); $sugarQuery->from(BeanFactory::newBean('Accounts')); $sugarQuery->select()->addField('status_c'); $sugarQuery->joinTable…