Removed old test

This commit is contained in:
Claudio Sanches 2017-09-06 20:25:41 -03:00
parent 4e9cf1c598
commit f6375b64d7
3 changed files with 1 additions and 20 deletions

View File

@ -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.
*/

View File

@ -1,4 +1,4 @@
<<?php
<?php
/**
* Class Functions.

View File

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