chore(tests): UT for PluginData service

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2024-03-10 17:00:00 +01:00
parent 4d72408e90
commit dd21f9c29b
8 changed files with 413 additions and 47 deletions

View File

@@ -31,7 +31,7 @@ use SP\Domain\Core\Exceptions\NoSuchPropertyException;
use SP\Domain\Core\Exceptions\QueryException;
use SP\Domain\Plugin\Ports\PluginCompatilityService;
use SP\Domain\Plugin\Ports\PluginInterface;
use SP\Domain\Plugin\Ports\PluginLoaderInterface;
use SP\Domain\Plugin\Ports\PluginLoaderService;
use SP\Domain\Plugin\Ports\PluginOperationInterface;
use SP\Infrastructure\Common\Repositories\NoSuchItemException;
@@ -52,7 +52,7 @@ abstract class PluginBase implements PluginInterface
public function __construct(
protected readonly PluginOperationInterface $pluginOperation,
private readonly PluginCompatilityService $pluginCompatilityService,
private readonly PluginLoaderInterface $pluginLoadService
private readonly PluginLoaderService $pluginLoadService
) {
$this->load();
}