File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
dev/tests/verification/Tests Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments