Make WordPress Core


Ignore:
Timestamp:
09/12/2013 07:16:30 AM (12 years ago)
Author:
wonderboymusic
Message:
  • Fill in undefined var in Tests_Option_BlogOption
  • Add defined() check for BLOGSUPLOADDIR
  • Suppress deprecated function notices for is_blog_user() and get_dashboard_blog()
  • Check existence of $user in wpmu_log_new_registrations() before arbitrarily making a database query

Fixes all notices in multisite unit tests.

See #25282.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/option/blogOption.php

    r25002 r25397  
    66 */
    77class Tests_Option_BlogOption extends WP_UnitTestCase {
     8    function setUp() {
     9        parent::setUp();
     10
     11        $_SERVER['REMOTE_ADDR'] = null;
     12    }
     13
    814    function test_from_same_site() {
    915        $key = rand_str();
     
    8288        global $current_site, $base;
    8389
     90        $title = 'Fooblog';
    8491        $domain = 'blogoptiontest';
    8592
Note: See TracChangeset for help on using the changeset viewer.