Class TestGenerator @SuppressWarnings(PHPMD)
Definition at line 32 of file TestGenerator.php.
◆ createAllTestFiles()
createAllTestFiles |
( |
|
$testManifest = null , |
|
|
|
$testsToIgnore = null |
|
) |
| |
Assemble ALL PHP strings using the assembleAllTestPhp function. Loop over and pass each array item to the createCestFile function.
- Parameters
-
BaseTestManifest | $testManifest | |
array | $testsToIgnore | |
- Returns
- void
- Exceptions
-
Definition at line 188 of file TestGenerator.php.
190 if ($this->
tests ===
null) {
196 if ($testsToIgnore ===
null) {
200 $testPhpArray = $this->assembleAllTestPhp($testManifest, $testsToIgnore);
201 foreach ($testPhpArray as $testPhpFile) {
202 $this->createCestFile($testPhpFile[1], $testPhpFile[0]);
static createGroupDir($fullPath)
◆ getExportDir()
Returns the absolute path to the test export director for the generator instance.
- Returns
- string
Definition at line 124 of file TestGenerator.php.
126 return $this->exportDirectory;
◆ getInstance()
static getInstance |
( |
|
$dir = null , |
|
|
|
$tests = [] , |
|
|
|
$debug = false |
|
) |
| |
|
static |
◆ DEFAULT_DIR
const DEFAULT_DIR = 'default' |
◆ GENERATED_DIR
const GENERATED_DIR = '_generated' |
◆ HOOK_SCOPE
const HOOK_SCOPE = 'hook' |
◆ PRESSKEY_ARRAY_ANCHOR_KEY
const PRESSKEY_ARRAY_ANCHOR_KEY = '987654321098765432109876543210' |
◆ REQUIRED_ENTITY_REFERENCE
const REQUIRED_ENTITY_REFERENCE = 'createDataKey' |
◆ SUITE_SCOPE
const SUITE_SCOPE = 'suite' |
◆ TEST_SCOPE
const TEST_SCOPE = 'test' |
The documentation for this class was generated from the following file:
- vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Util/TestGenerator.php