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. git-svn-id: https://develop.svn.wordpress.org/trunk@34532 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
039955d5cd
commit
0dc1f270ec
@ -112,9 +112,9 @@ class Tests_Multisite_Site extends WP_UnitTestCase {
|
|||||||
// The table should exist.
|
// The table should exist.
|
||||||
$this->assertNotEmpty( $table_fields );
|
$this->assertNotEmpty( $table_fields );
|
||||||
|
|
||||||
// And the table should not be empty, unless commentmeta or links.
|
// And the table should not be empty, unless commentmeta, termmeta, or links.
|
||||||
$result = $wpdb->get_results( "SELECT * FROM $prefix$table LIMIT 1" );
|
$result = $wpdb->get_results( "SELECT * FROM $prefix$table LIMIT 1" );
|
||||||
if ( 'commentmeta' == $table || 'links' == $table ) {
|
if ( 'commentmeta' == $table || 'termmeta' == $table || 'links' == $table ) {
|
||||||
$this->assertEmpty( $result );
|
$this->assertEmpty( $result );
|
||||||
} else {
|
} else {
|
||||||
$this->assertNotEmpty( $result );
|
$this->assertNotEmpty( $result );
|
||||||
|
Loading…
Reference in New Issue
Block a user