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 ); - } }