From ba1d29c672923721eb793a06976c2350dc7e2113 Mon Sep 17 00:00:00 2001 From: Maria Fernanda Magallanes Zubillaga Date: Tue, 25 Jun 2024 22:09:24 +0100 Subject: [PATCH] fix: remove the tests' inclusion in the plugin --- composer.json | 12 +++++++++--- includes/class-openedx-commerce.php | 3 --- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index a5824c4..d3c4ae7 100644 --- a/composer.json +++ b/composer.json @@ -25,8 +25,7 @@ "admin/", "admin/views/", "public/", - "utils/", - "test/" + "utils/" ], "psr-4": { "OpenedX_Commerce\\": "includes/", @@ -34,7 +33,14 @@ "OpenedX_Commerce\\admin\\": "admin/", "OpenedX_Commerce\\admin\\views\\": "admin/views/", "OpenedX_Commerce\\public\\": "public/", - "OpenedX_Commerce\\utils\\": "utils/", + "OpenedX_Commerce\\utils\\": "utils/" + } + }, + "autoload-dev": { + "classmap": [ + "test/" + ], + "psr-4": { "OpenedX_Commerce\\tests\\": "test/" } }, diff --git a/includes/class-openedx-commerce.php b/includes/class-openedx-commerce.php index e11e190..eb3de38 100644 --- a/includes/class-openedx-commerce.php +++ b/includes/class-openedx-commerce.php @@ -169,9 +169,6 @@ private function load_dependencies() { */ include_once plugin_dir_path( __DIR__ ) . 'includes/model/class-openedx-commerce-api-calls.php'; - - include_once plugin_dir_path( __DIR__ ) - . 'test/class-enrollment-test.php'; } /**