[ Index ]

PHP Cross Reference of YOURLS




/tests/tests/plugins/ -> files.php (summary)

(no description)

File Size: 200 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Plugin_Files_Tests:: (15 methods):

Class: Plugin_Files_Tests  - X-Ref

File related plugin functions : find plugins, activate, deactivate, uninstall.

tearDownAfterClass()   X-Ref
Reset active plugin list

get_invalid_code_plugins()   X-Ref
Return array of files from tests/data/plugins/invalid-code

pick_a_plugin()   X-Ref
Return one of the "valid" test plugins from tests/data/plugins

test_get_plugins()   X-Ref
Check that only 2 "valid" plugins are found in tests/data/plugins

test_plugin_validate()   X-Ref
Check that a random "valid" plugin file validates as a plugin file

test_missing_plugin_validate()   X-Ref
Check that a nonexistent plugin file does not validate as a plugin file

test_invalid_plugin_validate($plugin)   X-Ref
Check that an invalid plugin file does not validate as a plugin file

test_plugin_activate()   X-Ref
Check that a random valid plugin activates correctly

test_plugin_activate_twice( $plugin )   X-Ref
Check that an active plugin does not activate

test_load_plugins( $plugin )   X-Ref
Simulate initial plugin loading

test_plugin_deactivate( $plugin )   X-Ref
Check that valid plugin deactivates correctly

test_plugin_uninstall( $plugin )   X-Ref
Check that deactivating a plugin correctly ran the uninstall script

test_invalid_plugin_activate()   X-Ref
Check that an missing plugin does not activate

test_invalid_plugin_deactivate()   X-Ref
Check that a missing plugin does not deactivate

test_invalid_plugin_does_not_activate($plugin)   X-Ref
Check that a plugin with invalid code does not activate

Generated: Wed Sep 28 05:10:02 2022 Cross-referenced by PHPXref 0.7.1