Make WordPress Core

Changeset 30035


Ignore:
Timestamp:
10/27/2014 01:58:17 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Update expected results in wp_link_pages() unit tests after [30030].

see #24940.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/template.php

    r28399 r30035  
    2626        $this->assertEquals( $before_after, $output );
    2727
    28         $separator = "1{$page2}2</a>{$page3}3</a>";
     28        $separator = " 1{$page2}2</a>{$page3}3</a>";
    2929        $output = wp_link_pages( array( 'echo' => 0, 'before' => '', 'after' => '', 'separator' => '' ) );
    3030
    3131        $this->assertEquals( $separator, $output );
    3232
    33         $link = "<em>1</em>{$page2}<em>2</em></a>{$page3}<em>3</em></a>";
     33        $link = " <em>1</em>{$page2}<em>2</em></a>{$page3}<em>3</em></a>";
    3434        $output = wp_link_pages( array( 'echo' => 0, 'before' => '', 'after' => '', 'separator' => '',
    3535            'link_before' => '<em>', 'link_after' => '</em>'
     
    6161
    6262        $GLOBALS['page'] = 1;
    63         $separator = "<p>Pages: | 1 | {$page2}2</a> | {$page3}3</a></p>";
     63        $separator = "<p>Pages: 1 | {$page2}2</a> | {$page3}3</a></p>";
    6464        $output = wp_link_pages( array( 'echo' => 0, 'separator' => ' | ' ) );
    6565
    6666        $this->assertEquals( $separator, $output );
    6767
    68         $pagelink = " | Page 1 | {$page2}Page 2</a> | {$page3}Page 3</a>";
     68        $pagelink = " Page 1 | {$page2}Page 2</a> | {$page3}Page 3</a>";
    6969        $output = wp_link_pages( array( 'echo' => 0, 'separator' => ' | ', 'before' => '', 'after' => '',
    7070            'pagelink' => 'Page %'
Note: See TracChangeset for help on using the changeset viewer.