Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Data Fields
XmlDuplicateGerationTest Class Reference
Inheritance diagram for XmlDuplicateGerationTest:
MftfTestCase

Public Member Functions

 testDuplicatesInTest ()
 
 testDuplicatesInActionGroup ()
 
 testDuplicatesInMergeTest ()
 
- Public Member Functions inherited from MftfTestCase
 generateAndCompareTest ($testName)
 
 validateSchemaErrorWithTest ($fileContents, $objectType, $expectedError)
 

Data Fields

const XML_DUPLICATE_TEST = 'XmlDuplicateTest'
 
const XML_DUPLICATE_ACTIONGROUP = 'xmlDuplicateActionGroup'
 
const XML_DUPLICATE_MERGE_TEST = 'BasicDupedActionTest'
 
const RESOURCES_PATH = __DIR__ . '/../Resources'
 
- Data Fields inherited from MftfTestCase
const RESOURCES_PATH
 

Detailed Description

Definition at line 12 of file XmlDuplicateGenerationTest.php.

Member Function Documentation

◆ testDuplicatesInActionGroup()

testDuplicatesInActionGroup ( )

Definition at line 28 of file XmlDuplicateGenerationTest.php.

29  {
30  ActionGroupObjectHandler::getInstance()->getObject(self::XML_DUPLICATE_ACTIONGROUP);
31  $this->addToAssertionCount(1); // No exception thrown thus far, can assert dupes didn't cause an error.
32  }

◆ testDuplicatesInMergeTest()

testDuplicatesInMergeTest ( )

Parser testing, makes sure test action nodes are marked as array.

Definition at line 37 of file XmlDuplicateGenerationTest.php.

38  {
39  TestObjectHandler::getInstance()->getObject(self::XML_DUPLICATE_MERGE_TEST);
40  $this->addToAssertionCount(1); // No exception thrown thus far, can assert dupes didn't cause an error.
41  }

◆ testDuplicatesInTest()

testDuplicatesInTest ( )

Tests flat generation of a hardcoded test file with no external references.

Definition at line 22 of file XmlDuplicateGenerationTest.php.

23  {
24  TestObjectHandler::getInstance()->getObject(self::XML_DUPLICATE_TEST);
25  $this->addToAssertionCount(1); // No exception thrown thus far, can assert dupes didn't cause an error.
26  }

Field Documentation

◆ RESOURCES_PATH

const RESOURCES_PATH = __DIR__ . '/../Resources'

Definition at line 17 of file XmlDuplicateGenerationTest.php.

◆ XML_DUPLICATE_ACTIONGROUP

const XML_DUPLICATE_ACTIONGROUP = 'xmlDuplicateActionGroup'

Definition at line 15 of file XmlDuplicateGenerationTest.php.

◆ XML_DUPLICATE_MERGE_TEST

const XML_DUPLICATE_MERGE_TEST = 'BasicDupedActionTest'

Definition at line 16 of file XmlDuplicateGenerationTest.php.

◆ XML_DUPLICATE_TEST

const XML_DUPLICATE_TEST = 'XmlDuplicateTest'

Definition at line 14 of file XmlDuplicateGenerationTest.php.


The documentation for this class was generated from the following file: