Implement skipped tests

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
This commit is contained in:
Dillon-Brown 2020-12-10 13:32:19 +00:00
parent ca4b9ced9a
commit 2114e123d8
6 changed files with 195 additions and 154 deletions

View file

@ -5,6 +5,9 @@ namespace Mock\Core\Legacy\Statistics;
use AcceptanceTester;
use App\Legacy\Statistics\CasesPerAccount;
use App\Tests\_mock\Helpers\core\legacy\Data\DBQueryResultsMocking;
use SugarBean;
use aCase;
use BeanFactory;
class CasesPerAccountMock extends CasesPerAccount
{
@ -34,4 +37,17 @@ class CasesPerAccountMock extends CasesPerAccount
protected function startLegacyApp(): void
{
}
/**
* @param string $id
* @return aCase|null
*/
protected function getCase(string $id): ?aCase
{
/** @var aCase $case */
$case = BeanFactory::getBean('Cases');
$case->account_id = '12345';
return $case;
}
}