You appear to be a bot. Output may be restricted
Description
Q. Is it possible to test the behaviour of oik-privacy-policy even when it's not activated? A. It should be since oik-privacy-policy really only responds to admin stuff.
Q. What actions do we need to invoke when the plugin's been activated/loaded? A. Probably depends on the plugin. A generic routine might want to determine the plugin/theme name automatically If the plugin's not activated then we don't expect it to be loaded. There are probably exceptions to this. If it's not loaded
Usage
Tests_oik_privacy_policy::test_is_plugin_loaded();
Parameters
Returns
void
Source
File name: oik-privacy-policy/tests/test–oik-privacy-policy.php
Lines:
1 to 12 of 12
function test_is_plugin_loaded() { $plugin = "oik-privacy-policy"; $activated = $this->is_plugin_activated( $plugin ); $loaded = $this->is_plugin_loaded( $plugin ); $this->assertEquals( $activated, $loaded ); if ( !$loaded ) { //echo "Loading... $plugin" . PHP_EOL; $loaded = $this->load_plugin( $plugin ); } $this->assertTrue( $loaded ); }