WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/25/2015 04:31:52 AM (4 years ago)
Author:
boonebgorges
Message:

After [34529], fix multisite site creation test.

The test Tests_Multisite_Site::test_created_site_details() checks for tables
that should be empty on a newly created MS site. termmeta is now one of those
tables.

See #10142.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/multisite/site.php

    r34173 r34532  
    113113            $this->assertNotEmpty( $table_fields );
    114114
    115             // And the table should not be empty, unless commentmeta or links.
     115            // And the table should not be empty, unless commentmeta, termmeta, or links.
    116116            $result = $wpdb->get_results( "SELECT * FROM $prefix$table LIMIT 1" );
    117             if ( 'commentmeta' == $table || 'links' == $table ) {
     117            if ( 'commentmeta' == $table || 'termmeta' == $table || 'links' == $table ) {
    118118                $this->assertEmpty( $result );
    119119            } else {
Note: See TracChangeset for help on using the changeset viewer.