@@ -22,6 +22,7 @@ class functionalSuiteHooks extends \Codeception\GroupObject
22
22
private $currentTestRun = 0;
23
23
private static $HOOK_EXECUTION_INIT = "\n/******** Beginning execution of functionalSuiteHooks suite %s block ********/\n";
24
24
private static $HOOK_EXECUTION_END = "\n/******** Execution of functionalSuiteHooks suite %s block complete ********/\n";
25
+ private $create;
25
26
26
27
public function _before(\Codeception\Event\TestEvent $e)
27
28
{
@@ -53,6 +54,10 @@ class functionalSuiteHooks extends \Codeception\GroupObject
53
54
// initialize the webdriver session
54
55
$webDriver->_initializeSession();
55
56
$webDriver->amOnPage("some.url");
57
+ $createFields['someKey'] = ;
58
+ $createThis = DataObjectHandler::getInstance()->getObject("createThis");
59
+ $this->create = new DataPersistenceHandler($createThis, [], $createFields);
60
+ $this->create->createEntity();
56
61
57
62
// reset configuration and close session
58
63
$this->getModule('\Magento\FunctionalTestingFramework\Module\MagentoWebDriver')->_resetConfig();
@@ -89,6 +94,7 @@ class functionalSuiteHooks extends \Codeception\GroupObject
89
94
// initialize the webdriver session
90
95
$webDriver->_initializeSession();
91
96
$webDriver->amOnPage("some.url");
97
+ $webDriver->deleteEntityByUrl("deleteThis");
92
98
93
99
// reset configuration and close session
94
100
$this->getModule('\Magento\FunctionalTestingFramework\Module\MagentoWebDriver')->_resetConfig();
0 commit comments