WordPress.org

Make WordPress Core

Ticket #8847: 8847-test.diff

File 8847-test.diff, 555 bytes (added by wonderboymusic, 8 months ago)
  • tests/link.php

     
     1<?php 
     2/** 
     3 * @group link-template.php 
     4 */ 
     5class Tests_Link_Functions extends WP_UnitTestCase { 
     6        /** 
     7         * @ticket 8847 
     8         */ 
     9        function test_get_pagenum_link_case() { 
     10                // check case-sensitivity 
     11                $_SERVER['REQUEST_URI'] = '/Woo/Hoo/'; 
     12                $paged = get_pagenum_link( 2 ); 
     13                 
     14                $this->assertEquals( $paged, home_url( '/Woo/Hoo/?paged=2' ) ); 
     15        } 
     16} 
     17 No newline at end of file