File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
dev/tests/functional/tests/MFTF/DevDocs Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -46,4 +46,15 @@ public function goTo(
46
46
print ('$bla = ' . $ bla . PHP_EOL );
47
47
print ('array $arraysomething = [ ' . implode (', ' , $ arraysomething ) . '] ' . PHP_EOL );
48
48
}
49
+
50
+ /**
51
+ * Returns value of provided param $text
52
+ *
53
+ * @param string $text
54
+ * @return string
55
+ */
56
+ public function getText (string $ text ): string
57
+ {
58
+ return $ text ;
59
+ }
49
60
}
Original file line number Diff line number Diff line change 42
42
<argument name =" int" >987</argument >
43
43
</helper >
44
44
45
+ <helper class =" \MFTF\DevDocs\Helper\CustomHelper" method =" getText" stepKey =" getText" >
46
+ <argument name =" text" >some text</argument >
47
+ </helper >
48
+ <assertEquals stepKey =" assertHelperReturnValue" message =" Method getText of CustomHelper should return value which may be used as variable in test" >
49
+ <expectedResult type =" string" >some text</expectedResult >
50
+ <actualResult type =" variable" >getText</actualResult >
51
+ </assertEquals >
52
+
45
53
<actionGroup ref =" HelperActionGroup" stepKey =" actionGroupWithCustomHelper" >
46
54
<argument name =" test" value =" {{HelperData.entityField}}" />
47
55
<argument name =" entityTest" value =" HelperData" />
You can’t perform that action at this time.
0 commit comments