Merge pull request #20045 from liquidweb/fix/table-ordering

Sort the results of WC_Install::get_tables()
This commit is contained in:
Gerhard Potgieter 2018-05-18 11:14:21 +01:00 committed by GitHub
commit 92be60f3e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -122,8 +122,10 @@ class WC_Tests_Install extends WC_Unit_Test_Case {
$tables = $wpdb->get_col(
"SHOW TABLES WHERE `Tables_in_{$wpdb->dbname}` LIKE '{$wpdb->prefix}woocommerce\_%' OR `Tables_in_{$wpdb->dbname}` LIKE '{$wpdb->prefix}wc\_%'"
);
$result = WC_Install::get_tables();
sort( $result );
$this->assertEquals( $tables, WC_Install::get_tables() );
$this->assertEquals( $tables, $result );
}
/**