From f6375b64d70771f2f0b843b56261fed87a627ee8 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Wed, 6 Sep 2017 20:25:41 -0300 Subject: [PATCH] Removed old test --- includes/class-woocommerce.php | 2 -- tests/unit-tests/core/functions.php | 2 +- tests/unit-tests/core/main-class.php | 17 ----------------- 3 files changed, 1 insertion(+), 20 deletions(-) diff --git a/includes/class-woocommerce.php b/includes/class-woocommerce.php index 0e4b7ded1b2..2e14dda15f8 100644 --- a/includes/class-woocommerce.php +++ b/includes/class-woocommerce.php @@ -220,8 +220,6 @@ final class WooCommerce { /** * Define constant if not already set. * - * For integrations prefer wc_maybe_define_constant() instead. - * * @param string $name Constant name. * @param string|bool $value Constant value. */ diff --git a/tests/unit-tests/core/functions.php b/tests/unit-tests/core/functions.php index 7e80ff61ab9..ec72cf42ea8 100644 --- a/tests/unit-tests/core/functions.php +++ b/tests/unit-tests/core/functions.php @@ -1,4 +1,4 @@ -<assertInstanceOf( 'WC_Cart', $this->wc->cart ); $this->assertInstanceOf( 'WC_Customer', $this->wc->customer ); } - - /** - * Test WooCommerce->define. - * - * @since 2.3.0 - */ - public function test_define() { - $this->assertFalse( defined( 'WC_TESTING_DEFINE_METHOD' ) ); - - // Check if defined. - $this->wc->define( 'WC_TESTING_DEFINE_METHOD', true ); - $this->assertTrue( defined( 'WC_TESTING_DEFINE_METHOD' ) ); - - // Check value. - $this->wc->define( 'WC_TESTING_DEFINE_METHOD', false ); - $this->assertTrue( WC_TESTING_DEFINE_METHOD ); - } }