You appear to be a bot. Output may be restricted
Description
Usage
Tests_Admin_IncludesSchema::test_populate_site_meta( $meta, $expected );
Parameters
- $meta
- ( mixed ) required –
- $expected
- ( mixed ) required –
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/admin/includesSchema.php
Lines:
1 to 20 of 20
public function test_populate_site_meta( $meta, $expected ) { global $wpdb; $orig_blogmeta = $wpdb->blogmeta; $wpdb->blogmeta = self::$blogmeta; populate_site_meta( 42, $meta ); $results = array(); foreach ( $expected as $meta_key => $value ) { $results[ $meta_key ] = get_site_meta( 42, $meta_key, true ); } $wpdb->query( "TRUNCATE TABLE {$wpdb->blogmeta}" ); $wpdb->blogmeta = $orig_blogmeta; $this->assertSame( $expected, $results ); }