From 11598ec2ccca6db1a50d8901c20019ba4e161243 Mon Sep 17 00:00:00 2001 From: Joe Hoyle Date: Thu, 22 Sep 2016 15:02:25 -0400 Subject: [PATCH] Only run the settings tests on 4.7+ --- tests/test-rest-settings-controller.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test-rest-settings-controller.php b/tests/test-rest-settings-controller.php index 0d87b86..96ada97 100644 --- a/tests/test-rest-settings-controller.php +++ b/tests/test-rest-settings-controller.php @@ -9,6 +9,10 @@ class WP_Test_REST_Settings_Controller extends WP_Test_REST_Controller_Testcase { public function setUp() { + global $wp_version; + if ( version_compare( $wp_version, '4.7-alpha', '<' ) ) { + return $this->markTestSkipped( 'WordPress version not supported.' ); + } parent::setUp(); $this->administrator = $this->factory->user->create( array( 'role' => 'administrator',