WordPress.org

Make WordPress Core

Changeset 200 in tests


Ignore:
Timestamp:
04/05/08 00:17:38 (7 years ago)
Author:
tellyworth
Message:

hide html output during importer tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_import_wp.php

    r187 r200  
    9494 
    9595    function test_big_import() { 
    96         $this->_import_wp(DIR_TESTDATA.'/export/big-export.xml', array('User A')); 
     96        #$this->_import_wp(DIR_TESTDATA.'/export/big-export.xml', array('User A')); 
     97        $html_output = get_echo( array(&$this, '_import_wp'), array( DIR_TESTDATA.'/export/big-export.xml', array('User A') ) ); 
    9798 
    9899        // check that the tag counts are correct 
     
    118119    // use this to generate the tests seen in test_all_posts() 
    119120    function _test_generate() { 
    120         $this->_import_wp(DIR_TESTDATA.'/export/asdftestblog1.2007-12-14.xml', array('Alex Shiels'=>'User A', 'tellyworthtest2'=>'User B')); 
     121        $this->_import_wp(DIR_TESTDATA.'/export/asdftestblog1.2008-04-01.xml', array('Alex Shiels'=>'User A', 'tellyworthtest2'=>'User B')); 
    121122        $this->posts = get_posts('numberposts=500&post_type=&post_status=&orderby=post_date DESC,ID'); 
    122123        echo $this->_generate_post_content_test($this->posts, false); 
     
    125126    function test_all_posts() { 
    126127        global $wpdb; 
    127         $this->_import_wp(DIR_TESTDATA.'/export/asdftestblog1.2007-12-14.xml', array('Alex Shiels'=>'User A', 'tellyworthtest2'=>'User B')); 
     128        #$this->_import_wp(DIR_TESTDATA.'/export/asdftestblog1.2008-04-01.xml', array('Alex Shiels'=>'User A', 'tellyworthtest2'=>'User B')); 
     129        $html_output = get_echo( array(&$this, '_import_wp'), array( DIR_TESTDATA.'/export/asdftestblog1.2007-12-14.xml', array('Alex Shiels'=>'User A', 'tellyworthtest2'=>'User B') ) ); 
    128130 
    129131        // check the tag and category counts 
Note: See TracChangeset for help on using the changeset viewer.