mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-04 10:14:13 +08:00
Implement skipped tests
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
This commit is contained in:
parent
ca4b9ced9a
commit
2114e123d8
6 changed files with 195 additions and 154 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue