Invoice Subpanel implementation

This commit is contained in:
j.anderson 2020-12-10 14:09:41 +00:00 committed by Dillon-Brown
parent adca306c93
commit 9855c638c6
10 changed files with 676 additions and 39 deletions

View file

@ -0,0 +1,40 @@
<?php
namespace App\Tests\_mock\Mock\core\legacy\Statistics;
use App\Legacy\Statistics\SubPanelAccountsInvoicesTotal;
use App\Tests\_mock\Helpers\core\legacy\Data\DBQueryResultsMocking;
/**
* Class SubPanelCasesCountMock
* @package Mock\Core\Legacy\Statistics
*/
class SubPanelAccountsInvoicesTotalMock extends SubPanelAccountsInvoicesTotal
{
use DBQueryResultsMocking;
/**
* @inheritDoc
*/
public function getQueries(string $parentModule, string $parentId, string $subpanel): array
{
return [
[
'select' => '',
'where' => '',
]
];
}
/**
* @inheritDoc
*/
public function fetchRow(string $query): array
{
return $this->getMockQueryResults();
}
protected function startLegacyApp(): void
{
}
}

View file

@ -0,0 +1,40 @@
<?php
namespace App\Tests\_mock\Mock\core\legacy\Statistics;
use App\Legacy\Statistics\SubPanelContactsInvoicesTotal;
use App\Tests\_mock\Helpers\core\legacy\Data\DBQueryResultsMocking;
/**
* Class SubPanelCasesCountMock
* @package Mock\Core\Legacy\Statistics
*/
class SubPanelContactsInvoicesTotalMock extends SubPanelContactsInvoicesTotal
{
use DBQueryResultsMocking;
/**
* @inheritDoc
*/
public function getQueries(string $parentModule, string $parentId, string $subpanel): array
{
return [
[
'select' => '',
'where' => '',
]
];
}
/**
* @inheritDoc
*/
public function fetchRow(string $query): array
{
return $this->getMockQueryResults();
}
protected function startLegacyApp(): void
{
}
}

View file

@ -0,0 +1,40 @@
<?php
namespace App\Tests\_mock\Mock\core\legacy\Statistics;
use App\Legacy\Statistics\SubPanelQuotesInvoicesTotal;
use App\Tests\_mock\Helpers\core\legacy\Data\DBQueryResultsMocking;
/**
* Class SubPanelCasesCountMock
* @package Mock\Core\Legacy\Statistics
*/
class SubPanelQuotesInvoicesTotalMock extends SubPanelQuotesInvoicesTotal
{
use DBQueryResultsMocking;
/**
* @inheritDoc
*/
public function getQueries(string $parentModule, string $parentId, string $subpanel): array
{
return [
[
'select' => '',
'where' => '',
]
];
}
/**
* @inheritDoc
*/
public function fetchRow(string $query): array
{
return $this->getMockQueryResults();
}
protected function startLegacyApp(): void
{
}
}