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
19
19
*/
20
20
public function testInvalidTestSchema ()
21
21
{
22
+ $ config = MftfApplicationConfig::getConfig ();
22
23
$ property = new ReflectionProperty (MftfApplicationConfig::class, 'debugLevel ' );
23
24
$ property ->setAccessible (true );
24
- $ property ->setValue (MftfApplicationConfig::LEVEL_DEVELOPER );
25
+ $ property ->setValue ($ config , MftfApplicationConfig::LEVEL_DEVELOPER );
25
26
26
27
$ testFile = ['testFile.xml ' => "<tests><test name='testName'><annotations>a</annotations></test></tests> " ];
27
28
$ expectedError = TESTS_MODULE_PATH .
@@ -39,8 +40,9 @@ public function testInvalidTestSchema()
39
40
*/
40
41
protected function tearDown (): void
41
42
{
43
+ $ config = MftfApplicationConfig::getConfig ();
42
44
$ property = new ReflectionProperty (MftfApplicationConfig::class, 'debugLevel ' );
43
45
$ property ->setAccessible (true );
44
- $ property ->setValue (null );
46
+ $ property ->setValue ($ config , MftfApplicationConfig:: LEVEL_DEFAULT );
45
47
}
46
48
}
You can’t perform that action at this time.
0 commit comments