mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-04 10:14:13 +08:00
Add Contracts Subpanel Implementation
This commit is contained in:
parent
6065c9c22a
commit
a778e0e504
4 changed files with 245 additions and 40 deletions
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
namespace App\Tests\_mock\Mock\core\legacy\Statistics;
|
||||
|
||||
use App\Legacy\Statistics\SubPanelContractsRenewalDate;
|
||||
use App\Tests\_mock\Helpers\core\legacy\Data\DBQueryResultsMocking;
|
||||
|
||||
/**
|
||||
* Class SubPanelContractsRenewalDateMock
|
||||
* @package Mock\Core\Legacy\Statistics
|
||||
*/
|
||||
class SubPanelContractsRenewalDateMock extends SubPanelContractsRenewalDate
|
||||
{
|
||||
use DBQueryResultsMocking;
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getQueries(string $parentModule, string $parentId, string $subpanel): array
|
||||
{
|
||||
return [
|
||||
[
|
||||
'select' => '',
|
||||
'where' => '',
|
||||
'order_by' => '',
|
||||
],
|
||||
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function fetchRow(string $query): array
|
||||
{
|
||||
return $this->getMockQueryResults();
|
||||
}
|
||||
|
||||
protected function startLegacyApp(): void
|
||||
{
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue