Skip to content

Commit

Permalink
Issue #3100: Improved Log test by setting the log leve itself.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaerter committed Jun 12, 2024
1 parent 4783bc6 commit 87c932c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/test/Log.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# --
# OTOBO is a web-based ticketing system for service organisations.
# --
# Copyright (C) 2019-2024 Rother OSS GmbH, https://otobo.de/
# Copyright (C) 2019-2024 Rother OSS GmbH, https://otobo.io/
# --
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
Expand Down Expand Up @@ -30,6 +30,13 @@ use Kernel::System::UnitTest::RegisterDriver; # Set up $Kernel::OM
subtest 'GetLogEntry() after Log()' => sub {
$Kernel::OM->ObjectsDiscard; # start on a clean slate

my $Helper = $Kernel::OM->Get('Kernel::System::UnitTest::Helper');
$Helper->ConfigSettingChange(
Valid => 1,
Key => 'MinimumLogLevel',
Value => 'info',
);

my $ExpectedInfo = '🌨';
my $ExpectedNotice = '⛄ was built';
my $ExpectedError = '⛄ has melted';
Expand Down

0 comments on commit 87c932c

Please sign in to comment.