Add tests for Case Days Open

This commit is contained in:
j.anderson 2020-11-09 14:26:56 +00:00 committed by Dillon-Brown
parent c44c3ae8e5
commit aeff40fec1
2 changed files with 274 additions and 0 deletions

View file

@ -0,0 +1,53 @@
<?php
namespace Mock\Core\Legacy\Statistics;
use App\Legacy\Statistics\CaseDaysOpen;
use Doctrine\ORM\EntityManagerInterface;
use aCase;
use Mock\Helpers\Core\Legacy\Data\DBQueryResultsMocking;
use SugarBean;
class CaseDaysOpenMock extends CaseDaysOpen
{
use DBQueryResultsMocking;
/**
* @var aCase
*/
public $case;
/**
* @param aCase $case
*/
public function setCase(aCase $case): void
{
$this->case = $case;
}
/**
* @param $id
* @return aCase
*/
protected function getCase(string $id): aCase
{
return $this->case;
}
protected function startLegacyApp(): void
{
}
/**
* @inheritDoc
*/
protected function runAuditInfoQuery(
EntityManagerInterface $em,
SugarBean $bean,
string $field,
array $procedureParams,
$innerQuery
): ?array {
return $this->getAllMockQueryResults();
}
}