Skip to content

Commit 320e5d3

Browse files
committed
MQE-1017: Better Error Messaging When Non-Whitespace Characters Are
Outside XML Elements - Changed default verification tests to use debug turned off
1 parent 998e816 commit 320e5d3

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

dev/tests/_bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
true,
3333
\Magento\FunctionalTestingFramework\Config\MftfApplicationConfig::GENERATION_PHASE,
3434
true,
35-
true
35+
false
3636
);
3737

3838
// Load needed framework env params

dev/tests/verification/Tests/SchemaValidationTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
*/
66
namespace tests\verification\Tests;
77

8+
use Magento\FunctionalTestingFramework\Config\MftfApplicationConfig;
89
use tests\util\MftfTestCase;
10+
use AspectMock\Test as AspectMock;
911

1012
class 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
}

0 commit comments

Comments
 (0)