Skip to content

Commit 6fa4ad0

Browse files
MFTF-33582: Fixing verification test
1 parent 71596ba commit 6fa4ad0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dev/tests/verification/Tests/SchemaValidationTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ class SchemaValidationTest extends MftfTestCase
1919
*/
2020
public function testInvalidTestSchema()
2121
{
22+
$config = MftfApplicationConfig::getConfig();
2223
$property = new ReflectionProperty(MftfApplicationConfig::class, 'debugLevel');
2324
$property->setAccessible(true);
24-
$property->setValue(MftfApplicationConfig::LEVEL_DEVELOPER);
25+
$property->setValue($config, MftfApplicationConfig::LEVEL_DEVELOPER);
2526

2627
$testFile = ['testFile.xml' => "<tests><test name='testName'><annotations>a</annotations></test></tests>"];
2728
$expectedError = TESTS_MODULE_PATH .
@@ -39,8 +40,9 @@ public function testInvalidTestSchema()
3940
*/
4041
protected function tearDown(): void
4142
{
43+
$config = MftfApplicationConfig::getConfig();
4244
$property = new ReflectionProperty(MftfApplicationConfig::class, 'debugLevel');
4345
$property->setAccessible(true);
44-
$property->setValue(null);
46+
$property->setValue($config, MftfApplicationConfig::LEVEL_DEFAULT);
4547
}
4648
}

0 commit comments

Comments
 (0)