예제 #1
0
	/**
	 * Setup test fixture
	 */
	public function setup() {
		require_once( ABSPATH . WPINC . '/class-wp-image-editor.php' );

		include_once( DIR_TESTDATA . '/../includes/mock-image-editor.php' );

		parent::setUp();
	}
	public function setup() {
		require_once( ABSPATH . WPINC . '/class-wp-image-editor.php' );
		require_once( ABSPATH . WPINC . '/class-wp-image-editor-imagick.php' );

		$editor = new WP_Image_Editor_Imagick( null );

		if ( ! $editor->test() )
			$this->markTestSkipped( 'Image Magick not available' );

		parent::setUp();
	}
 public function setUp()
 {
     require_once ABSPATH . WPINC . '/class-wp-image-editor.php';
     require_once ABSPATH . WPINC . '/class-wp-image-editor-imagick.php';
     parent::setUp();
 }
	public function setUp() {
		require_once( ABSPATH . WPINC . '/class-wp-image-editor.php' );
		require_once( ABSPATH . WPINC . '/class-wp-image-editor-gd.php' );

		parent::setUp();
	}
예제 #5
0
 public function setUp()
 {
     parent::setUp();
     add_filter('wp_image_editors', array($this, 'wp_image_editors'));
 }