diff --git a/src/RestApi.php b/src/RestApi.php index 90a8376fa68..3ccfaff8e63 100644 --- a/src/RestApi.php +++ b/src/RestApi.php @@ -28,7 +28,7 @@ class RestApi { * * @var array */ - protected $endpoints = []; + protected $controllers = []; /** * Hook into WordPress ready to init the REST API as needed. @@ -45,8 +45,8 @@ class RestApi { $controllers = $namespace_class::get_controllers(); foreach ( $controllers as $controller_name => $controller_class ) { - $this->endpoints[ $namespace ][ $controller_name ] = new $controller_class(); - $this->endpoints[ $namespace ][ $controller_name ]->register_routes(); + $this->controllers[ $namespace ][ $controller_name ] = new $controller_class(); + $this->controllers[ $namespace ][ $controller_name ]->register_routes(); } } } diff --git a/unit-tests/bin/install.sh b/unit-tests/bin/install.sh index 4cdcc6c5b49..0b6747fc8a3 100755 --- a/unit-tests/bin/install.sh +++ b/unit-tests/bin/install.sh @@ -180,16 +180,9 @@ install_deps() { cd "wp-content/plugins/" git clone --depth 1 https://github.com/woocommerce/woocommerce.git - git clone --depth 1 https://github.com/woocommerce/woocommerce-admin.git - - cd "woocommerce-admin" - composer install - npm install - npm run build cd "$WP_CORE_DIR" php wp-cli.phar plugin activate woocommerce - php wp-cli.phar plugin activate woocommerce-admin if [ "$BRANCH" != "" ]; then # Install the correct branch of the plugin, if running from Travis CI.