Skip to content

Commit

Permalink
fix: dummy test that always passes to test workflow, unit test requir…
Browse files Browse the repository at this point in the history
…e deleted
  • Loading branch information
julianramirez2 committed Jun 22, 2023
1 parent 8deff83 commit 682e56d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
6 changes: 1 addition & 5 deletions includes/class-openedx-woocommerce-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';

}

/**
Expand Down
23 changes: 9 additions & 14 deletions test/HelloTest.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
<?php

class HelloTest extends \PHPUnit\Framework\TestCase {
/**
* This test is a dummy test that always passes.
/**
* This test is a dummy test that always passes.
* It was implemented just to test the Git Workflow
* that implements PHPUnit.
*/
/** @test */
// public function test_hello_test() {
// $expected = true;
// $actual = true;
*/
public function test_hello_test() {
$expected = true;
$actual = true;

// // Assertion
// if ($actual === $expected) {
// echo "Test Passed!";
// } else {
// echo "Test Failed!";
// }
// }
// Assertion
$this->assertTrue($actual === $expected);
}
}

0 comments on commit 682e56d

Please sign in to comment.