Remove unused code from WC_Tests_Install::test_check_version()
To test the method WC_Install::check_version() it is not necessary to update the of the option 'woocoommerce_db_version' as this method uses only 'woocommerce_version'.
This commit is contained in:
parent
13351b3d75
commit
16a44964f1
|
@ -11,13 +11,11 @@ class WC_Tests_Install extends WC_Unit_Test_Case {
|
|||
*/
|
||||
public function test_check_version() {
|
||||
update_option( 'woocommerce_version', ( (float) WC()->version - 1 ) );
|
||||
update_option( 'woocommerce_db_version', WC()->version );
|
||||
WC_Install::check_version();
|
||||
|
||||
$this->assertTrue( did_action( 'woocommerce_updated' ) === 1 );
|
||||
|
||||
update_option( 'woocommerce_version', WC()->version );
|
||||
update_option( 'woocommerce_db_version', WC()->version );
|
||||
WC_Install::check_version();
|
||||
|
||||
$this->assertTrue( did_action( 'woocommerce_updated' ) === 1 );
|
||||
|
|
Loading…
Reference in New Issue