add tests for configuration class

This commit is contained in:
2021-11-28 01:04:46 +01:00
bovenliggende b1946c4aae
commit 3aa64f8f63
4 gewijzigde bestanden met toevoegingen van 538 en 2 verwijderingen

Bestand weergeven

@ -149,7 +149,13 @@ class Configuration
*/
public function getActionById($id) : ActionBase
{
return $this->getAllActions()[$id];
$allActions = $this->getAllActions();
if (false == $allActions[$id]) {
throw oxNew(DataWizardException::class, 'no action with id '.$id);
}
return $allActions[$id];
}
/**