Skip to content

Commit 280fe17

Browse files
committed
Issue #5564: accept suggestions from CodePolicy
1 parent 5db8ff2 commit 280fe17

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

scripts/test/DynamicField/ObjectType/Article/ObjectDataGet.t

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,26 +143,26 @@ my @Tests = (
143143
DynamicFieldConfig => $DynamicFieldConfig,
144144
UserID => 1,
145145
},
146-
Request => "Action=someaction;Subaction=somesubaction;ArticleID=-1",
147-
Throws => 1,
146+
Request => "Action=someaction;Subaction=somesubaction;ArticleID=-1",
147+
Throws => 1,
148148
},
149149
{
150150
Name => 'Wrong ArticleID and TicketID in the request',
151151
Config => {
152152
DynamicFieldConfig => $DynamicFieldConfig,
153153
UserID => 1,
154154
},
155-
Request => "Action=someaction;Subaction=somesubaction;ArticleID=-1;TicketID=-1",
156-
Throws => 1,
155+
Request => "Action=someaction;Subaction=somesubaction;ArticleID=-1;TicketID=-1",
156+
Throws => 1,
157157
},
158158
{
159159
Name => 'Correct Article with wrong TicketID in the request',
160160
Config => {
161161
DynamicFieldConfig => $DynamicFieldConfig,
162162
UserID => 1,
163163
},
164-
Request => "Action=someaction;Subaction=somesubaction;ArticleID=$ArticleID;TicketID=-1",
165-
Throws => 1,
164+
Request => "Action=someaction;Subaction=somesubaction;ArticleID=$ArticleID;TicketID=-1",
165+
Throws => 1,
166166
},
167167
{
168168
Name => 'Correct Article without TicketID in the request',
@@ -197,7 +197,6 @@ my $ObjectHandlerObject = $Kernel::OM->Get('Kernel::System::DynamicField::Object
197197
TEST:
198198
for my $Test (@Tests) {
199199

200-
print STDERR "TEST: $Test->{Name} \n";
201200
# force the ParamObject to use the new request params
202201
my $QueryString = $Test->{Request} // '';
203202
$Kernel::OM->ObjectParamAdd(

scripts/test/DynamicField/ObjectType/Ticket/ObjectDataGet.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ my @Tests = (
129129
DynamicFieldConfig => $DynamicFieldConfig,
130130
UserID => 1,
131131
},
132-
Request => "Action=someaction;Subaction=somesubaction;TicketID=-1",
133-
Throws => 1,
132+
Request => "Action=someaction;Subaction=somesubaction;TicketID=-1",
133+
Throws => 1,
134134
},
135135
{
136136
Name => 'Correct Ticket',

0 commit comments

Comments
 (0)