WordPress.org

Make WordPress Core

Changeset 461 in tests


Ignore:
Timestamp:
10/20/11 16:13:45 (3 years ago)
Author:
ryan
Message:

Make sure all tables except commentmeta are not empty.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_ms.php

    r460 r461  
    3737                $table_fields = $wpdb->get_results( "DESCRIBE $prefix$table;" ); 
    3838                $this->assertNotEmpty( $table_fields ); 
     39                $result = $wpdb->get_results( "SELECT * FROM $prefix$table LIMIT 1"); 
     40                if ( 'commentmeta' == $table ) 
     41                    $this->assertEmpty( $result ); 
     42                else 
     43                    $this->assertNotEmpty( $result ); 
    3944            } 
    4045 
Note: See TracChangeset for help on using the changeset viewer.