diff --git a/tests/unit-tests/GravityView_Future_Test.php b/tests/unit-tests/GravityView_Future_Test.php index 8de62e485..491b36061 100644 --- a/tests/unit-tests/GravityView_Future_Test.php +++ b/tests/unit-tests/GravityView_Future_Test.php @@ -78,7 +78,7 @@ public function test_plugin_is_compatible() { $this->assertTrue( gravityview()->plugin->is_compatible() ); /** Simulate various other conditions, including failure conditions. */ - $GLOBALS['GRAVITYVIEW_TESTS_PHP_VERSION_OVERRIDE'] = '7.0.99-hhvm'; + $GLOBALS['GRAVITYVIEW_TESTS_PHP_VERSION_OVERRIDE'] = '7.2.0'; $GLOBALS['GRAVITYVIEW_TESTS_WP_VERSION_OVERRIDE'] = '4.8-alpha-39901'; $GLOBALS['GRAVITYVIEW_TESTS_GF_VERSION_OVERRIDE'] = '2.3.3.10-alpha'; $this->assertTrue( gravityview()->plugin->is_compatible_php() ); @@ -86,6 +86,9 @@ public function test_plugin_is_compatible() { $this->assertTrue( gravityview()->plugin->is_compatible_gravityforms() ); $this->assertTrue( gravityview()->plugin->is_compatible() ); + $GLOBALS['GRAVITYVIEW_TESTS_PHP_VERSION_OVERRIDE'] = '7.1'; + $this->assertFalse( gravityview()->plugin->is_compatible_php() ); + $GLOBALS['GRAVITYVIEW_TESTS_PHP_VERSION_OVERRIDE'] = '5.2'; $GLOBALS['GRAVITYVIEW_TESTS_WP_VERSION_OVERRIDE'] = '3.0'; $GLOBALS['GRAVITYVIEW_TESTS_GF_VERSION_OVERRIDE'] = '1.0';