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(
4646 print ('$bla = ' . $ bla . PHP_EOL );
4747 print ('array $arraysomething = [ ' . implode (', ' , $ arraysomething ) . '] ' . PHP_EOL );
4848 }
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+ }
4960}
Original file line number Diff line number Diff line change 4242 <argument name =" int" >987</argument >
4343 </helper >
4444
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+
4553 <actionGroup ref =" HelperActionGroup" stepKey =" actionGroupWithCustomHelper" >
4654 <argument name =" test" value =" {{HelperData.entityField}}" />
4755 <argument name =" entityTest" value =" HelperData" />
You can’t perform that action at this time.
0 commit comments