Make WordPress Core


Ignore:
Timestamp:
10/25/2016 11:03:15 PM (9 years ago)
Author:
jeremyfelt
Message:

Multisite: Use get_site() in tests where get_blog_details() is not tested.

Remaining tests either rely on the blog-details cache key or test get_blog_details() itself.

Props flixos90.
Fixes #38497.

File:
1 edited

Legend:

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

    r35242 r38935  
    3232        $this->assertTrue( $result );
    3333
    34         $blog = get_blog_details( $blog_id );
     34        $blog = get_site( $blog_id );
    3535
    3636        $this->assertEquals( 'example.com', $blog->domain );
     
    6464
    6565        update_blog_details( $blog_id, array( $flag => $flag_value ) );
    66         $blog = get_blog_details( $blog_id );
     66        $blog = get_site( $blog_id );
    6767
    6868        $this->assertEquals( $flag_value, $blog->{$flag} );
     
    109109    public function test_update_blog_details_single_directory_path( $path, $expected ) {
    110110        update_blog_details( 1, array( 'path' => $path ) );
    111         $site = get_blog_details( 1 );
     111        $site = get_site( 1 );
    112112
    113113        $this->assertEquals( $expected, $site->path );
Note: See TracChangeset for help on using the changeset viewer.