Changeset 30035
- Timestamp:
- 10/27/2014 01:58:17 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/template.php
r28399 r30035 26 26 $this->assertEquals( $before_after, $output ); 27 27 28 $separator = " 1{$page2}2</a>{$page3}3</a>";28 $separator = " 1{$page2}2</a>{$page3}3</a>"; 29 29 $output = wp_link_pages( array( 'echo' => 0, 'before' => '', 'after' => '', 'separator' => '' ) ); 30 30 31 31 $this->assertEquals( $separator, $output ); 32 32 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>"; 34 34 $output = wp_link_pages( array( 'echo' => 0, 'before' => '', 'after' => '', 'separator' => '', 35 35 'link_before' => '<em>', 'link_after' => '</em>' … … 61 61 62 62 $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>"; 64 64 $output = wp_link_pages( array( 'echo' => 0, 'separator' => ' | ' ) ); 65 65 66 66 $this->assertEquals( $separator, $output ); 67 67 68 $pagelink = " |Page 1 | {$page2}Page 2</a> | {$page3}Page 3</a>";68 $pagelink = " Page 1 | {$page2}Page 2</a> | {$page3}Page 3</a>"; 69 69 $output = wp_link_pages( array( 'echo' => 0, 'separator' => ' | ', 'before' => '', 'after' => '', 70 70 'pagelink' => 'Page %'
Note: See TracChangeset
for help on using the changeset viewer.