Resource icon

Unit testing XenForo addons - tutorial

Additional requirements
Composer must be installed on your development server and you must have a basic understanding of how PHPUnit works.
Compatibilty

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

Unit Test Framework v2.1

The TestCase.php and CreatesApplication.php files have been updated in v2.1 and...
You do not have permission to view the full content of this resource. Log in or register now.
Author
Sim
Views
2,965
First release
Last update

Ratings

5.00 star(s) 1 ratings

More resources from Sim

  • Known Bots
    Known Bots
    Adds additional definitions for bot detection in sessions
  • Location Explain
    Location Explain
    Add an explanation to the location field
  • CLI Job / Cron Runner
    CLI Job / Cron Runner
    An advanced CLI triggered job runner for Unix cron with extensive debugging support
  • Archive Site
    Archive Site
    Put a site into archive mode and hide unnecessary features from guests
  • Items This Page
    Items This Page
    Add template variable $xf.itemsThisPage for how many posts/media items/resources/etc are on a page

Latest updates

  1. v2.1.0 release

    v2.1.0 of the Unit Test Framework has been released. Updates are via Composer. Note breaking...
  2. v2.0.0 release

    XenForo 2.2 implements Swiftmail 6, which changes some of the method/interface signatures - so...
  3. v1.2.1 updates

    bugfix: fixed typo in function name assertSimpleCacheEqual => assertSimpleCacheEquals bugfix...

Latest reviews

Thank you for developing and, of course, maintaining this addon! It's not a full solution but greatly helped us having unit tests in our custom addons!
Back
Top Bottom