Unit testing XenForo addons

Unit testing XenForo addons

jessy Master Sergeant
Staff member
Moderating
badge id 1 1 Year of Membership badge id 13 100 Messages badge id 2 2 Years of Membership badge id 14 500 Messages
Jun 28, 2020
2,917
1,227
$5,838
thanks to dear member @jessy submitted a new resource:

Unit testing XenForo addons - The TestCase.php and CreatesApplication.php files have been updated in v2.1

For XenForo v2.1 addons, you should use Unit Test Framework v1.x

For XenForo v2.2 addons, you should use Unit Test Framework v2.x

Upgrading

v2.1

The TestCase.php and CreatesApplication.php files have been updated in v2.1 and you should edit these files in your addon unit test directory to merge in these changes.

Specifically, there is a new variable in TestCase.php:

PHP:
protected $addonsToLoad = [];
... and some new code in CreatesApplication.php which should be...

Read more about this resource...
 
Back
Top