assertEquals($db_tables, $expanded_db_tables); } /** * Tests drush_sql_filter_tables(). * * @see drush_sql_filter_tables(). */ public function testFilterTables() { // Array of tables to search for. $wildcard_input = array( 'cache', 'cache_*', ); // Mock array of tables to test with. $db_tables = array( 'cache', 'cache_bootstrap', 'cache_field', 'cache_filter', 'cache_form', 'cache_menu', 'cache_page', 'cache_path', 'cache_update', ); $expected_result = array( 'cache', ); $actual_result = drush_sql_filter_tables($wildcard_input, $db_tables); $this->assertEquals($expected_result, $actual_result); } }