67 private $annotations = [];
72 private $beforeHook = [];
77 private $afterHook = [];
82 private $failedHook = [];
87 private $testActions = [];
92 private $testReference =
null;
100 $this->testName =
$name;
112 if ($annotations ==
null) {
113 $this->annotations = [
'group' => [[
'value' =>
'test']]];
115 $this->annotations = $annotations;
129 if ($beforeHook ==
null) {
130 $this->beforeHook = [$this->testActionBeforeName => [
135 $this->beforeHook = $beforeHook;
149 if ($afterHook ==
null) {
150 $this->afterHook = [$this->testActionAfterName => [
156 $this->afterHook = $afterHook;
170 if ($failedHook ==
null) {
171 $this->failedHook = [$this->testActionFailedName => [
177 $this->failedHook = $failedHook;
191 if ($actions ==
null) {
192 $this->testActions = [$this->testTestActionName => [
197 $this->testActions = $actions;
212 "/magento2-functional-testing-framework/dev/tests/verification/TestModule/Test/BasicFunctionalTest.xml";
228 if ($reference !=
null) {
229 $this->testReference = $reference;
243 return [$this->testName => array_merge(
250 "filename" => $this->filename,
251 "extends" => $this->testReference
withTestActions($actions=null)
withFailedHook($failedHook=null)
withFileName($filename=null)
withAnnotations($annotations=null)
withAfterHook($afterHook=null)
withBeforeHook($beforeHook=null)
withTestReference($reference=null)
if(!isset($_GET['name'])) $name