N°4261 - test correctness: log deactivation is performed using bool false and not Error level

thanks @BenGrenoble
This commit is contained in:
bruno-ds
2021-10-26 15:54:19 +02:00
parent ab1b6837a2
commit 6d2b75df9e

View File

@@ -166,11 +166,11 @@ class ExceptionLogTest extends ItopDataTestCase
'aExceptions' => [\Exception::class],
'sChannel' => 'Exception',
'aExpectedWriteNumber' => [0],
'logLevelMin' => ['Exception' => 'Error'],
'logLevelMin' => ['Exception' => false],
'iExpectedDbWriteNumber' => [0],
'logLevelMinWriteInDb' => ['Exception' => 'Error'],
'logLevelMinWriteInDb' => ['Exception' => false],
],
'default channel, default conf' => [
'default channel, default conf' => [
'aLevels' => ['Warning'],
'aExceptions' => [\Exception::class],
'sChannel' => 'Exception',
@@ -179,7 +179,7 @@ class ExceptionLogTest extends ItopDataTestCase
'iExpectedDbWriteNumber' => [0],
'logLevelMinWriteInDb' => null,
],
'enabled' => [
'enabled' => [
'aLevels' => ['Debug'],
'aExceptions' => [\Exception::class],
'sChannel' => 'Exception',
@@ -197,7 +197,7 @@ class ExceptionLogTest extends ItopDataTestCase
'iExpectedDbWriteNumber' => [0, 0, 0, 1],
'logLevelMinWriteInDb' => null,
],
'Simple Error (testing Throwable signature)' => [
'Simple Error (testing Throwable signature)' => [
'aLevels' => ['Debug'],
'aExceptions' => [\Error::class],
'sChannel' => 'Error',