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 32
32
true ,
33
33
\Magento \FunctionalTestingFramework \Config \MftfApplicationConfig::GENERATION_PHASE ,
34
34
true ,
35
- true
35
+ false
36
36
);
37
37
38
38
// Load needed framework env params
Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace tests \verification \Tests ;
7
7
8
+ use Magento \FunctionalTestingFramework \Config \MftfApplicationConfig ;
8
9
use tests \util \MftfTestCase ;
10
+ use AspectMock \Test as AspectMock ;
9
11
10
12
class SchemaValidationTest extends MftfTestCase
11
13
{
@@ -17,6 +19,7 @@ class SchemaValidationTest extends MftfTestCase
17
19
*/
18
20
public function testInvalidTestSchema ()
19
21
{
22
+ AspectMock::double (MftfApplicationConfig::class, ['debugEnabled ' => true ]);
20
23
$ testFile = ['testFile.xml ' => "<tests><test name='testName'><annotations>a</annotations></test></tests> " ];
21
24
$ expectedError = TESTS_MODULE_PATH .
22
25
DIRECTORY_SEPARATOR .
@@ -27,4 +30,13 @@ public function testInvalidTestSchema()
27
30
"testFile.xml " ;
28
31
$ this ->validateSchemaErrorWithTest ($ testFile , 'Test ' , $ expectedError );
29
32
}
33
+
34
+ /**
35
+ * After method functionality
36
+ * @return void
37
+ */
38
+ protected function tearDown ()
39
+ {
40
+ AspectMock::clean ();
41
+ }
30
42
}
You can’t perform that action at this time.
0 commit comments