File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 3232 true ,
3333 \Magento \FunctionalTestingFramework \Config \MftfApplicationConfig::GENERATION_PHASE ,
3434 true ,
35- true
35+ false
3636);
3737
3838// Load needed framework env params
Original file line number Diff line number Diff line change 55 */
66namespace tests \verification \Tests ;
77
8+ use Magento \FunctionalTestingFramework \Config \MftfApplicationConfig ;
89use tests \util \MftfTestCase ;
10+ use AspectMock \Test as AspectMock ;
911
1012class SchemaValidationTest extends MftfTestCase
1113{
@@ -17,6 +19,7 @@ class SchemaValidationTest extends MftfTestCase
1719 */
1820 public function testInvalidTestSchema ()
1921 {
22+ AspectMock::double (MftfApplicationConfig::class, ['debugEnabled ' => true ]);
2023 $ testFile = ['testFile.xml ' => "<tests><test name='testName'><annotations>a</annotations></test></tests> " ];
2124 $ expectedError = TESTS_MODULE_PATH .
2225 DIRECTORY_SEPARATOR .
@@ -27,4 +30,13 @@ public function testInvalidTestSchema()
2730 "testFile.xml " ;
2831 $ this ->validateSchemaErrorWithTest ($ testFile , 'Test ' , $ expectedError );
2932 }
33+
34+ /**
35+ * After method functionality
36+ * @return void
37+ */
38+ protected function tearDown ()
39+ {
40+ AspectMock::clean ();
41+ }
3042}
You can’t perform that action at this time.
0 commit comments