Make WordPress Core


Ignore:
Timestamp:
10/21/2015 01:58:52 AM (10 years ago)
Author:
wonderboymusic
Message:

Unit Tests: consolidate the many separate implementations of _make_attachment() into a helper method on WP_UnitTestCase.

Fixes #34075.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/image/header.php

    r34214 r35309  
    105105
    106106    function test_create_attachment_object() {
    107         global $custom_image_header;
    108 
    109107        $id = wp_insert_attachment( array(
    110108            'post_status' => 'publish',
     
    124122
    125123    function test_insert_cropped_attachment() {
    126         global $custom_image_header;
    127 
    128124        $id = wp_insert_attachment( array(
    129125            'post_status' => 'publish',
Note: See TracChangeset for help on using the changeset viewer.