Skip to:
Content

BuddyPress.org

Changeset 11842


Ignore:
Timestamp:
02/04/2018 04:37:24 PM (4 years ago)
Author:
djpaul
Message:

Tests, PHPUnit: fix tests which assume WP_CONTENT_DIR is always /wp-content.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/core/class-bp-media-extractor.php

    r11739 r11842  
    318318        $this->assertCount( 1, $media );
    319319
    320         $this->assertSame( 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/image.jpg', $media[0]['url'] );
     320        $this->assertSame( WP_CONTENT_URL . '/uploads/image.jpg', $media[0]['url'] );
    321321    }
    322322
     
    337337        $this->assertCount( 2, $media );
    338338
    339         $this->assertSame( 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/test-image-large.png', $media[0]['url'] );
    340         $this->assertSame( 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/canola.jpg', $media[1]['url'] );
     339        $this->assertSame( WP_CONTENT_URL . '/uploads/test-image-large.png', $media[0]['url'] );
     340        $this->assertSame( WP_CONTENT_URL . '/uploads/canola.jpg', $media[1]['url'] );
    341341    }
    342342
     
    386386        $this->assertCount( 1, $media );
    387387
    388         $this->assertSame( 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/image.jpg', $media[0]['url'] );
     388        $this->assertSame( WP_CONTENT_URL . '/uploads/image.jpg', $media[0]['url'] );
    389389    }
    390390
Note: See TracChangeset for help on using the changeset viewer.