-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: deactivate plugin on lower php versions, adds notice for PHP fo…
…r upgrade
- Loading branch information
Showing
5 changed files
with
132 additions
and
78 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
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
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,20 @@ | ||
<?php | ||
/** | ||
* Loading test for lower PHP versions. | ||
* | ||
* @package ThemeIsleSDK | ||
*/ | ||
|
||
/** | ||
* Test plugin is not loading. | ||
*/ | ||
class Loading_Old_Test extends WP_UnitTestCase { | ||
/** | ||
* Test if the SDK is not loading on lower php versions. | ||
*/ | ||
public function test_plugin_not_loaded() { | ||
$this->assertTrue( is_plugin_active('optimole-wp/optimole-wp.php')); | ||
$this->assertNull( optml() ); | ||
} | ||
|
||
} |
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
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