From eedafc93d0bd7b4cb14f22a8991b5793f03b70b5 Mon Sep 17 00:00:00 2001 From: Julian Ramirez Date: Thu, 22 Jun 2023 16:55:58 -0500 Subject: [PATCH 1/2] fix: gitignore file added to ignore composer files --- .gitignore | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2e161e0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +### Composer ### +composer.phar +/vendor/ +composer.lock From 70db821bca38a7e01f0613324bff8a72361ea633 Mon Sep 17 00:00:00 2001 From: Julian Ramirez Date: Thu, 22 Jun 2023 16:57:45 -0500 Subject: [PATCH 2/2] fix: dummy test that always passes to test workflow, unit test require deleted --- includes/class-openedx-woocommerce-plugin.php | 6 +---- test/HelloTest.php | 23 ++++++++----------- 2 files changed, 10 insertions(+), 19 deletions(-) diff --git a/includes/class-openedx-woocommerce-plugin.php b/includes/class-openedx-woocommerce-plugin.php index 5686e84..bf8dc67 100644 --- a/includes/class-openedx-woocommerce-plugin.php +++ b/includes/class-openedx-woocommerce-plugin.php @@ -138,11 +138,7 @@ private function load_dependencies() { * The class responsible for rendering the enrollment info form */ require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/views/class-openedx-woocommerce-plugin-enrollment-info-form.php'; - - /** - * The class responsible for doing the dummy testing - */ - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'test/hello-test.php'; + } /** diff --git a/test/HelloTest.php b/test/HelloTest.php index aa6803a..69d6fbd 100644 --- a/test/HelloTest.php +++ b/test/HelloTest.php @@ -1,21 +1,16 @@ assertTrue($actual === $expected); + } }