forked from magento/magento2-functional-testing-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathXmlDuplicateGenerationTest.php
42 lines (37 loc) · 1.53 KB
/
XmlDuplicateGenerationTest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace tests\verification\Tests;
use Magento\FunctionalTestingFramework\Test\Handlers\ActionGroupObjectHandler;
use Magento\FunctionalTestingFramework\Test\Handlers\TestObjectHandler;
use tests\util\MftfTestCase;
class XmlDuplicateGerationTest extends MftfTestCase
{
const XML_DUPLICATE_TEST = 'XmlDuplicateTest';
const XML_DUPLICATE_ACTIONGROUP = 'xmlDuplicateActionGroup';
const XML_DUPLICATE_MERGE_TEST = 'BasicDupedActionTest';
const RESOURCES_PATH = __DIR__ . '/../Resources';
/**
* Tests flat generation of a hardcoded test file with no external references.
*/
public function testDuplicatesInTest()
{
TestObjectHandler::getInstance()->getObject(self::XML_DUPLICATE_TEST);
$this->addToAssertionCount(1); // No exception thrown thus far, can assert dupes didn't cause an error.
}
public function testDuplicatesInActionGroup()
{
ActionGroupObjectHandler::getInstance()->getObject(self::XML_DUPLICATE_ACTIONGROUP);
$this->addToAssertionCount(1); // No exception thrown thus far, can assert dupes didn't cause an error.
}
/**
* Parser testing, makes sure test action nodes are marked as array.
*/
public function testDuplicatesInMergeTest()
{
TestObjectHandler::getInstance()->getObject(self::XML_DUPLICATE_MERGE_TEST);
$this->addToAssertionCount(1); // No exception thrown thus far, can assert dupes didn't cause an error.
}
}