Changeset 52010 for trunk/tests/phpunit/tests/general/paginateLinks.php
- Timestamp:
- 11/04/2021 03:22:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/general/paginateLinks.php
r51568 r52010 10 10 private $i18n_count = 0; 11 11 12 function set_up() {12 public function set_up() { 13 13 parent::set_up(); 14 14 … … 16 16 } 17 17 18 function test_defaults() {18 public function test_defaults() { 19 19 $page2 = get_pagenum_link( 2 ); 20 20 $page3 = get_pagenum_link( 3 ); … … 34 34 } 35 35 36 function test_format() {36 public function test_format() { 37 37 $page2 = home_url( '/page/2/' ); 38 38 $page3 = home_url( '/page/3/' ); … … 57 57 } 58 58 59 function test_prev_next_false() {59 public function test_prev_next_false() { 60 60 $home = home_url( '/' ); 61 61 $page3 = get_pagenum_link( 3 ); … … 82 82 } 83 83 84 function test_prev_next_true() {84 public function test_prev_next_true() { 85 85 $home = home_url( '/' ); 86 86 $page3 = get_pagenum_link( 3 ); … … 109 109 } 110 110 111 function increment_i18n_count() {111 public function increment_i18n_count() { 112 112 $this->i18n_count += 1; 113 113 } … … 116 116 * @ticket 25735 117 117 */ 118 function test_paginate_links_number_format() {118 public function test_paginate_links_number_format() { 119 119 $this->i18n_count = 0; 120 120 add_filter( 'number_format_i18n', array( $this, 'increment_i18n_count' ) ); … … 138 138 * @ticket 24606 139 139 */ 140 function test_paginate_links_base_value() {140 public function test_paginate_links_base_value() { 141 141 142 142 // Current page: 2. … … 206 206 } 207 207 208 function add_query_arg( $url ) {208 public function add_query_arg( $url ) { 209 209 return add_query_arg( 210 210 array( … … 219 219 * @ticket 29636 220 220 */ 221 function test_paginate_links_query_args() {221 public function test_paginate_links_query_args() { 222 222 add_filter( 'get_pagenum_link', array( $this, 'add_query_arg' ) ); 223 223 $links = paginate_links( … … 257 257 * @ticket 30831 258 258 */ 259 function test_paginate_links_with_custom_query_args() {259 public function test_paginate_links_with_custom_query_args() { 260 260 add_filter( 'get_pagenum_link', array( $this, 'add_query_arg' ) ); 261 261 $links = paginate_links(
Note: See TracChangeset
for help on using the changeset viewer.