Skip to content

Commit c20554c

Browse files
committed
fix: configTest loggin error by update
1 parent e0a4b5a commit c20554c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Infrastructure/Config/ConfigTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function testMainConfigValidation()
6262
$this->assertEquals(30, $timeout, "Invalid integer should be replaced with default");
6363

6464
$loggingLevel = $config->GetKey(ConfigKeys::LOGGING_LEVEL);
65-
$this->assertEquals('none', $loggingLevel, "Invalid choice should be replaced with default");
65+
$this->assertEquals('error', $loggingLevel, "Invalid choice should be replaced with default");
6666

6767
$minimumLetters = $config->GetKey(ConfigKeys::PASSWORD_MINIMUM_LETTERS, new IntConverter());
6868
$this->assertEquals(6, $minimumLetters, "Type conversion should return integer");
@@ -103,7 +103,7 @@ public function testPluginConfigValidation()
103103

104104
$this->assertLogMessage($errorLogs, "Invalid type for 'key1'. Should be 'string', using default.", 'key1 type validation error');
105105
$this->assertLogMessage($errorLogs, "Invalid type for 'server1.key'. Should be 'string', using default.", 'server1.key type validation error');
106-
$this->assertLogMessage($errorLogs, "Invalid value 'invalid' for 'server2.key'. Should be one of the following options: [Option 1, Option 2, Option 3]", 'server2.key value validation error');
106+
$this->assertLogMessage($errorLogs, "Invalid value 'invalid' for 'server2.key'. Should be one of the following options: [value1 => Option 1, value2 => Option 2, value3 => Option 3]", 'server2.key value validation error');
107107
}
108108

109109
public function testEnvOverridesConfigWithPutenv()

0 commit comments

Comments
 (0)