This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
devzone:testing:project:eventsurveycompleted [2013/06/05 13:39] menno created |
devzone:testing:project:eventsurveycompleted [2020/03/12 12:06] (current) |
||
|---|---|---|---|
| Line 5: | Line 5: | ||
| **public function getEventClass()** | **public function getEventClass()** | ||
| - | This method should return your Event class, normally this is done by the command: | + | This method should return your Event class. |
| **public function surveyDataProvider()** | **public function surveyDataProvider()** | ||
| - | Next you have to provide the test cases with input data and expected result of your `processTokenData`. The input data can be obtained by assigning the DisplayVars event to your survey. That way you can just copy/paste some real survey data. | + | Next you have to provide the test cases with input data and expected result of your `processTokenData`. The input data can be obtained by assigning the DisplayVars event to your survey and checking for answers. That way you can just copy/paste some real survey data. |
| - | Our full test class for the BMI score in the GemsTracker core would look like this (and is included as an example in the test library): | + | Our full test class for the BmiCalculation script in the GemsTracker core would look like this (and is included as an example in the test library): |
| <code php> | <code php> | ||
| <?php | <?php | ||