-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See #6
- Loading branch information
Showing
3 changed files
with
137 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"require-dev": { | ||
"wordpoints/module-uninstall-tester": "^0.3.0" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
|
||
/** | ||
* Test case for the module's unisntallation routine. | ||
* | ||
* @package WordPoints_Beta_Tester | ||
* @since 1.0.4 | ||
*/ | ||
|
||
/** | ||
* Test that the module uninstalls itself properly. | ||
* | ||
* @since 1.0.4 | ||
* | ||
* @group uninstall | ||
*/ | ||
class WordPoints_Beta_Tester_Uninstall_Test extends WordPoints_Module_Uninstall_UnitTestCase { | ||
|
||
/** | ||
* @since 1.0.4 | ||
*/ | ||
public function setUp() { | ||
|
||
$this->module_file = 'beta-tester/beta-tester.php'; | ||
|
||
parent::setUp(); | ||
} | ||
|
||
/** | ||
* Tests uninstallation. | ||
* | ||
* @since 1.0.4 | ||
*/ | ||
public function test() { | ||
|
||
add_site_option( 'wordpoints_beta_version', 'test' ); | ||
|
||
$this->uninstall(); | ||
|
||
$this->assertEmpty( get_site_option( 'wordpoints_beta_version' ) ); | ||
} | ||
} | ||
|
||
// EOF |