* @deprecated */ class SecurityFeature extends TestRunnerFeature implements ServiceLocatorAwareInterface { const FEATURE_ID = 'security'; use ServiceLocatorAwareTrait; public function __construct() { $this->id = self::FEATURE_ID; $this->isEnabledByDefault = true; } /** * @return string[] */ public function getPluginsIds() { if ($this->pluginsIds === null) { $testPluginService = $this->getServiceLocator()->get(TestPluginService::SERVICE_ID); $this->pluginsIds = []; foreach ($testPluginService->getAllPlugins() as $plugin) { if ($plugin->getCategory() === 'security') { $this->pluginsIds[] = $plugin->getId(); } } } return $this->pluginsIds; } /** * @inheritdoc */ public function getLabel() { return __('Security plugins'); } /** * @inheritdoc */ public function getDescription() { return __('Set of plugins with \'security\' category'); } }