function setUp() {
		parent::setUp();

		if ( ! defined( 'WP_IMPORTING' ) )
			define( 'WP_IMPORTING', true );

		if ( ! defined( 'WP_LOAD_IMPORTERS' ) )
			define( 'WP_LOAD_IMPORTERS', true );

		require_once DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php';
	}
Example #2
0
 function setUp()
 {
     parent::setUp();
     if (!defined('WP_IMPORTING')) {
         define('WP_IMPORTING', true);
     }
     if (!defined('WP_LOAD_IMPORTERS')) {
         define('WP_LOAD_IMPORTERS', true);
     }
     if (!file_exists(DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php')) {
         $this->markTestSkipped('WordPress Importer plugin is not installed.');
     }
     require_once DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php';
 }
Example #3
0
 function tearDown()
 {
     remove_filter('import_allow_create_users', '__return_true');
     parent::tearDown();
 }