Removed old test
This commit is contained in:
parent
4e9cf1c598
commit
f6375b64d7
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<<?php
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Class Functions.
|
||||
|
|
|
@ -68,21 +68,4 @@ class WC_Test_WooCommerce extends WC_Unit_Test_Case {
|
|||
$this->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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue