Param#

NAME#

Kernel::System::UnitTest::Param - Helper to unit test the Param object

SYNOPSIS#

Functions to unit test Params

PUBLIC INTERFACE#

new()#

create an object

use Kernel::System::ObjectManager;
local $Kernel::OM = Kernel::System::ObjectManager->new();
my $UnitTestParamObject = $Kernel::OM->Get('Kernel::System::UnitTest::Param');

ParamUploadSet()#

Sets a file path as an upload parameter for the Param object.

my $Success = $UnitTestParamObject->ParamUploadSet(
    Name     => 'Upload',
    Location => '...',
);

Returns:

my $Success = 1;

ParamSet()#

Sets a parameter for the Param object.

my $Success = $UnitTestParamObject->ParamSet(
    Name  => 'Upload',
    Value => '...',
);

Returns:

my $Success = 1;