Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-functional-testing-framework
dev
tests
verification
Tests
SchemaValidationTest.php
Go to the documentation of this file.
1
<?php
6
namespace
tests\verification\Tests
;
7
8
use
Magento\FunctionalTestingFramework\Config\MftfApplicationConfig
;
9
use
tests\util\MftfTestCase
;
10
use AspectMock\Test as AspectMock;
11
12
class
SchemaValidationTest
extends
MftfTestCase
13
{
20
public
function
testInvalidTestSchema
()
21
{
22
AspectMock::double(MftfApplicationConfig::class, [
'debugEnabled'
=>
true
]);
23
$testFile = [
'testFile.xml'
=>
"<tests><test name='testName'><annotations>a</annotations></test></tests>"
];
24
$expectedError = TESTS_MODULE_PATH .
25
DIRECTORY_SEPARATOR .
26
"TestModule"
.
27
DIRECTORY_SEPARATOR .
28
"Test"
.
29
DIRECTORY_SEPARATOR .
30
"testFile.xml"
;
31
$this->
validateSchemaErrorWithTest
($testFile,
'Test'
, $expectedError);
32
}
33
38
protected
function
tearDown
()
39
{
40
AspectMock::clean();
41
}
42
}
tests\verification\Tests
Definition:
ActionGroupGenerationTest.php:6
tests\verification\Tests\SchemaValidationTest\testInvalidTestSchema
testInvalidTestSchema()
Definition:
SchemaValidationTest.php:20
tests\verification\Tests\SchemaValidationTest
Definition:
SchemaValidationTest.php:12
tests\util\MftfTestCase\validateSchemaErrorWithTest
validateSchemaErrorWithTest($fileContents, $objectType, $expectedError)
Definition:
MftfTestCase.php:56
Magento\FunctionalTestingFramework\Config\MftfApplicationConfig
Definition:
MftfApplicationConfig.php:10
tests\util\MftfTestCase
Definition:
MftfTestCase.php:13
tests\verification\Tests\SchemaValidationTest\tearDown
tearDown()
Definition:
SchemaValidationTest.php:38