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

Public Member Functions

 testExtendedParentTestGeneration ()
 
 testExtendedTestGenerationReplaceStepKey ()
 
 testExtendedTestGenerationReplaceHook ()
 
 testExtendedTestGenerationMergeActions ()
 
 testExtendedTestGenerationAddHooks ()
 
 testExtendedTestGenerationRemoveAction ()
 
 testExtendedTestGenerationRemoveHookAction ()
 
 testExtendedTestGenerationNoParent ()
 
 testExtendingSkippedGeneration ()
 
- Public Member Functions inherited from MftfTestCase
 generateAndCompareTest ($testName)
 
 validateSchemaErrorWithTest ($fileContents, $objectType, $expectedError)
 

Additional Inherited Members

- Data Fields inherited from MftfTestCase
const RESOURCES_PATH
 

Detailed Description

Definition at line 12 of file ExtendedGenerationTest.php.

Member Function Documentation

◆ testExtendedParentTestGeneration()

testExtendedParentTestGeneration ( )

Tests flat generation of a test that is referenced by another test

Exceptions

Definition at line 20 of file ExtendedGenerationTest.php.

21  {
22  $this->generateAndCompareTest('ParentExtendedTest');
23  }
generateAndCompareTest($testName)

◆ testExtendedTestGenerationAddHooks()

testExtendedTestGenerationAddHooks ( )

Tests generation of test that extends based on another test when adding hooks

Exceptions

Definition at line 64 of file ExtendedGenerationTest.php.

65  {
66  $this->generateAndCompareTest('ChildExtendedTestAddHooks');
67  }
generateAndCompareTest($testName)

◆ testExtendedTestGenerationMergeActions()

testExtendedTestGenerationMergeActions ( )

Tests generation of test that extends based on another test when merging actions

Exceptions

Definition at line 53 of file ExtendedGenerationTest.php.

54  {
55  $this->generateAndCompareTest('ChildExtendedTestMerging');
56  }
generateAndCompareTest($testName)

◆ testExtendedTestGenerationNoParent()

testExtendedTestGenerationNoParent ( )

Tests to ensure extended tests with no parents are not generated

Exceptions

Definition at line 97 of file ExtendedGenerationTest.php.

98  {
99  $testObject = TestObjectHandler::getInstance()->getObject('ChildExtendedTestNoParent');
100  $test = TestGenerator::getInstance(null, [$testObject]);
101  $test->createAllTestFiles();
102 
103  $cestFile = $test->getExportDir() .
104  DIRECTORY_SEPARATOR .
105  $testObject->getCodeceptionName() .
106  ".php";
107 
108  $this->assertFalse(file_exists($cestFile));
109  }
static getInstance($dir=null, $tests=[], $debug=false)

◆ testExtendedTestGenerationRemoveAction()

testExtendedTestGenerationRemoveAction ( )

Tests generation of test that extends based on another test when removing an action

Exceptions

Definition at line 75 of file ExtendedGenerationTest.php.

76  {
77  $this->generateAndCompareTest('ChildExtendedTestRemoveAction');
78  }
generateAndCompareTest($testName)

◆ testExtendedTestGenerationRemoveHookAction()

testExtendedTestGenerationRemoveHookAction ( )

Tests generation of test that extends based on another test when removing an action

Exceptions

Definition at line 86 of file ExtendedGenerationTest.php.

87  {
88  $this->generateAndCompareTest('ChildExtendedTestRemoveHookAction');
89  }
generateAndCompareTest($testName)

◆ testExtendedTestGenerationReplaceHook()

testExtendedTestGenerationReplaceHook ( )

Tests generation of test that extends based on another test when replacing actions in hooks

Exceptions

Definition at line 42 of file ExtendedGenerationTest.php.

43  {
44  $this->generateAndCompareTest('ChildExtendedTestReplaceHook');
45  }
generateAndCompareTest($testName)

◆ testExtendedTestGenerationReplaceStepKey()

testExtendedTestGenerationReplaceStepKey ( )

Tests generation of test that extends based on another test when replacing actions

Exceptions

Definition at line 31 of file ExtendedGenerationTest.php.

32  {
33  $this->generateAndCompareTest('ChildExtendedTestReplace');
34  }
generateAndCompareTest($testName)

◆ testExtendingSkippedGeneration()

testExtendingSkippedGeneration ( )

Tests extending a skipped test generation.

Exceptions

Definition at line 117 of file ExtendedGenerationTest.php.

118  {
119  $this->generateAndCompareTest('ExtendingSkippedTest');
120  }
generateAndCompareTest($testName)

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