WordPress.org

Make WordPress Core

Changeset 462 in tests


Ignore:
Timestamp:
10/20/2011 05:38:09 PM (7 years ago)
Author:
nacin
Message:

Remove borked test_domain_exists() test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_ms.php

    r461 r462  
    7373    }
    7474
    75     function test_domain_exists() {
    76         global $current_site;
    77 
    78         $user1_id = $this->_make_user('administrator');
    79 
    80         $blog_ids = array();
    81         for ( $i=1; $i <= TEST_BLOGS_COUNT; $i++ ) {
    82             $id = ( $i & 1 ) ? $user1_id : $user2_id;
    83             $blog_id = wpmu_create_blog(  $current_site->domain, 'path'.$i, "Title".$i, $id );
    84             $this->assertInternalType( 'int', $blog_id );
    85             $blog_ids[] = $blog_id;
    86             $this->assertEquals( $blog_id , domain_exists( $current_site->domain, 'path'.$i ) );
    87             // Wrong site id should fail.
    88             $this->assertFalse( $blog_id , domain_exists( $current_site->domain, 'path'.$i ), 999 );
    89         }
    90 
    91         $this->assertFalse( domain_exists( $current_site->domain, rand_str() ) );
    92 
    93         foreach ( $blog_ids as $blog_id )               
    94             wpmu_delete_blog( $blog_id );
    95     }
    96 
    9775    function test_get_blogs_of_user() {
    9876        global $current_site;
Note: See TracChangeset for help on using the changeset viewer.