WordPress.org

Make WordPress Core

Ticket #24800: 24800.tests.diff

File 24800.tests.diff, 577 bytes (added by soulseekah, 5 years ago)
  • tests/basic.php

     
    8888EOF;
    8989                $this->assertEquals($expected, mask_input_value($in));
    9090        }
     91
     92        function test_create_and_drop_tables() {
     93                global $wpdb;
     94                $wpdb->query( "CREATE TABLE IF NOT EXISTS {$wpdb->prefix}temporary_test_table ( tmp INT(1) );" );
     95                $this->assertEmpty( $wpdb->last_error );
     96                $wpdb->query( "DROP TABLE {$wpdb->prefix}temporary_test_table;" );
     97                $this->assertEmpty( $wpdb->last_error );
     98        }
    9199}