From ec2c82347f57b91c6e332c236b803f4f230b46c5 Mon Sep 17 00:00:00 2001 From: Justin Shreve Date: Tue, 19 Jul 2016 11:38:18 -0700 Subject: [PATCH] Move WP-APIs test server code to a vendor directory, make sure it matches the version of the other vendor files. --- tests/bootstrap.php | 5 ++--- .../framework/{ => vendor}/class-wp-test-spy-rest-server.php | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) rename tests/framework/{ => vendor}/class-wp-test-spy-rest-server.php (91%) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 87e65f64053..20ddc8ba5a6 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -115,10 +115,9 @@ class WC_Unit_Tests_Bootstrap { require_once( $this->tests_dir . '/framework/helpers/class-wc-helper-settings.php' ); /** - * WP-API - * @todo to be removed when the wp-api branch is merged. + * WP-API. */ - require_once( $this->tests_dir . '/framework/class-wp-test-spy-rest-server.php' ); + require_once( $this->tests_dir . '/framework/vendor/class-wp-test-spy-rest-server.php' ); } /** diff --git a/tests/framework/class-wp-test-spy-rest-server.php b/tests/framework/vendor/class-wp-test-spy-rest-server.php similarity index 91% rename from tests/framework/class-wp-test-spy-rest-server.php rename to tests/framework/vendor/class-wp-test-spy-rest-server.php index ba485b65a1a..4d08c783bd9 100644 --- a/tests/framework/class-wp-test-spy-rest-server.php +++ b/tests/framework/vendor/class-wp-test-spy-rest-server.php @@ -1,7 +1,6 @@