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:
Rodrigo Primo 2018-02-05 14:23:04 -02:00
parent 13351b3d75
commit 16a44964f1
1 changed files with 0 additions and 2 deletions

View File

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