Skip to content
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.

Commit

Permalink
Only run the settings tests on 4.7+
Browse files Browse the repository at this point in the history
  • Loading branch information
joehoyle committed Sep 22, 2016
1 parent 913f71b commit 11598ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test-rest-settings-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 11598ec

Please sign in to comment.