mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-13 01:04:24 +08:00
Implement SavedSearch filters
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
This commit is contained in:
parent
bdc22e029f
commit
63fe5948ae
13 changed files with 314 additions and 28 deletions
|
@ -145,6 +145,29 @@ final class ViewDefinitionsHandlerTest extends Unit
|
|||
$appListStrings
|
||||
);
|
||||
|
||||
/** @var FilterDefinitionProviderInterface $filterDefinitionHandler */
|
||||
$filterDefinitionHandler = $this->make(
|
||||
FilterDefinitionProvider::class,
|
||||
[
|
||||
'getFilters' => static function (
|
||||
|
||||
/** @noinspection PhpUnusedParameterInspection */
|
||||
string $module
|
||||
)
|
||||
:
|
||||
array
|
||||
{
|
||||
$result = [];
|
||||
$result[] = [
|
||||
'id' => '1',
|
||||
'name' => 'Saved Filter 1',
|
||||
'contents' => 'dummy contents'
|
||||
];
|
||||
return $result;
|
||||
}
|
||||
]
|
||||
);
|
||||
|
||||
$this->viewDefinitionHandler = new ViewDefinitionsHandler(
|
||||
$projectDir,
|
||||
$legacyDir,
|
||||
|
@ -155,7 +178,8 @@ final class ViewDefinitionsHandlerTest extends Unit
|
|||
$fieldDefinitionsHandler,
|
||||
$bulkActionProvider,
|
||||
$chartDefinitionProvider,
|
||||
$lineActionDefinitionProvider
|
||||
$lineActionDefinitionProvider,
|
||||
$filterDefinitionHandler
|
||||
);
|
||||
|
||||
// Needed for aspect mock
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue