PHPackages                             wordpoints/module-uninstall-tester - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. wordpoints/module-uninstall-tester

Abandoned → [jdgrimes/wpppb](/?search=jdgrimes%2Fwpppb)Library[Testing &amp; Quality](/categories/testing)

wordpoints/module-uninstall-tester
==================================

Utilities for testing WordPoints module install/uninstall with PHPUnit

0.4.0(9y ago)03781MITPHPPHP &gt;=5.2.0

Since Aug 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/WordPoints/module-uninstall-tester)[ Packagist](https://packagist.org/packages/wordpoints/module-uninstall-tester)[ Docs](https://github.com/WordPoints/wordpoints-module-uninstall-tester)[ RSS](/packages/wordpoints-module-uninstall-tester/feed)WikiDiscussions develop Synced 5d ago

READMEChangelog (8)Dependencies (1)Versions (10)Used By (0)

WordPoints Module Uninstall Tester
==================================

[](#wordpoints-module-uninstall-tester)

A testcase class for testing WordPoints module install and uninstall, with related tools.

**Note: this library is now deprecated in favor of the testcase bundled with the [WordPoints dev-lib](https://github.com/WordPoints/dev-lib).**

Background
==========

[](#background)

This repo is an extension of the [WP Plugin Uninstall Tester](https://github.com/JDGrimes/wp-plugin-uninstall-tester), which enables it for use with WordPoints modules. For more information about the purpose and use of it, see that repo.

Requirements
============

[](#requirements)

The [WP Plugin Uninstall Tester](https://github.com/JDGrimes/wp-plugin-uninstall-tester) is required, and must be included in your bootstrap before you include this extension's files. It will be installed for you automatically if you are using composer.

Compatibility
=============

[](#compatibility)

The library is intended to be compatible with the current stable version of the WordPoints plugin, as well as the bleeding edge development version. It should also be compatible with all versions of PHP and WordPress which those versions of WordPoints support.

Installation
============

[](#installation)

You can install this library with composer:

```
composer require --dev wordpoints/module-uninstall-tester:~0.2
```

Set Up
======

[](#set-up)

You need to modify your tests' boostrap file to only include the module when the uninstall tests aren't being run.

```
/*
 * This needs to go after you include WordPress's unit test functions, but before
 * loading WordPress's bootstrap.php file.
 */

// Include the plugin uninstall test tools functions.
include_once dirname( __FILE__ ) . '/../../vendor/jdgrimes/wp-plugin-uninstall-tester/includes/functions.php';

// Now include the module uninstall test tools functions.
include_once dirname( __FILE__ ) . '/../../vendor/wordpoints/module-uninstall-tester/functions.php';

// Check if the tests are running. Only load the plugin if they aren't.
if ( ! running_wordpoints_module_uninstall_tests() ) {
    tests_add_filter( 'muplugins_loaded', 'my_plugin_activate' );
}
```

Secondly, you need to include the `bootstrap.php` file:

```
/*
 * This needs to be included after loading WordPress's bootstrap.php, because the
 * uninstall testcase extends WordPress's WP_UnitTestCase class.
 */

// Include the plugin uninstall tools bootstrap.
include_once dirname( __FILE__ ) . '/../../vendor/jdgrimes/wp-plugin-uninstall-tester/bootstrap.php';

// Now include the module uninstall tools bootstrap.
include_once dirname( __FILE__ ) . '/../../vendor/wordpoints/module-uninstall-tester/bootstrap.php';
```

Thirdly, you need to exclude the uninstall group from the tests in your PHPUnit XML config file:

```

            uninstall

```

That will exclude the uninstall tests from running by default. To run them, you'll need to do `phpunit --group=uninstall`.

Finally, you will need to set `WORDPOINTS_TESTS_DIR` in your environment. This should be the full path to the `/tests/phpunit/` directory in the WordPoints plugin development source.

Example:

`export WORDPOINTS_TESTS_DIR=/path/to/wordpoints/tests/phpunit/`

Usage
=====

[](#usage)

The only difference in usage from the plugin uninstall test tools, is that the path to the main module file is stored in the `$module_file` property, instead of `$plugin_file`.

License
=======

[](#license)

This library is joint licensed under the MIT and GPLv2 licenses.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~99 days

Recently: every ~143 days

Total

8

Last Release

3581d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4005415?v=4)[J.D. Grimes](/maintainers/jdgrimes)[@JDGrimes](https://github.com/JDGrimes)

---

Top Contributors

[![JDGrimes](https://avatars.githubusercontent.com/u/4005415?v=4)](https://github.com/JDGrimes "JDGrimes (45 commits)")

### Embed Badge

![Health badge](/badges/wordpoints-module-uninstall-tester/health.svg)

```
[![Health](https://phpackages.com/badges/wordpoints-module-uninstall-tester/health.svg)](https://phpackages.com/packages/wordpoints-module-uninstall-tester)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
