File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
dev/tests/verification/Tests Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,14 @@ class SchemaValidationTest extends MftfTestCase
19
19
*/
20
20
public function testInvalidTestSchema ()
21
21
{
22
+ $ mockConfig = $ this ->createMock (MftfApplicationConfig::class);
22
23
$ property = new ReflectionProperty (MftfApplicationConfig::class, 'debugLevel ' );
23
24
$ property ->setAccessible (true );
24
- $ property ->setValue (MftfApplicationConfig::LEVEL_DEVELOPER );
25
+ $ property ->setValue ($ mockConfig , MftfApplicationConfig::LEVEL_DEVELOPER );
26
+
27
+ $ property = new ReflectionProperty (MftfApplicationConfig::class, 'MFTF_APPLICATION_CONTEXT ' );
28
+ $ property ->setAccessible (true );
29
+ $ property ->setValue ($ mockConfig );
25
30
26
31
$ testFile = ['testFile.xml ' => "<tests><test name='testName'><annotations>a</annotations></test></tests> " ];
27
32
$ expectedError = TESTS_MODULE_PATH .
@@ -42,5 +47,9 @@ protected function tearDown(): void
42
47
$ property = new ReflectionProperty (MftfApplicationConfig::class, 'debugLevel ' );
43
48
$ property ->setAccessible (true );
44
49
$ property ->setValue (null );
50
+
51
+ $ property = new ReflectionProperty (MftfApplicationConfig::class, 'MFTF_APPLICATION_CONTEXT ' );
52
+ $ property ->setAccessible (true );
53
+ $ property ->setValue (null );
45
54
}
46
55
}
You can’t perform that action at this time.
0 commit comments