Changeset 59979 for trunk/tests/phpunit/tests/general/paginateLinks.php
- Timestamp:
- 03/13/2025 06:21:37 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/general/paginateLinks.php
r59966 r59979 380 380 $links = paginate_links( $args ); 381 381 382 // Test page 1 link (should have trailing slash) 382 // Test page 1 link (should have trailing slash). 383 383 $this->assertStringContainsString( 384 384 'href="http://example.org/category/test/"', … … 387 387 ); 388 388 389 // Test page 3 link (should have trailing slash) 389 // Test page 3 link (should have trailing slash). 390 390 $this->assertStringContainsString( 391 391 'href="http://example.org/category/test/page/3/"', … … 394 394 ); 395 395 396 // Test previous link (should have trailing slash) 396 // Test previous link (should have trailing slash). 397 397 $this->assertStringContainsString( 398 398 'class="prev page-numbers" href="http://example.org/category/test/"', … … 418 418 $links = paginate_links( $args ); 419 419 420 // Test page 1 link (should not have trailing slash) 420 // Test page 1 link (should not have trailing slash). 421 421 $this->assertStringContainsString( 422 422 'href="http://example.org/category/test"', … … 425 425 ); 426 426 427 // Test page 3 link (should not have trailing slash) 427 // Test page 3 link (should not have trailing slash). 428 428 $this->assertStringContainsString( 429 429 'href="http://example.org/category/test/page/3"', … … 432 432 ); 433 433 434 // Test previous link (should not have trailing slash) 434 // Test previous link (should not have trailing slash). 435 435 $this->assertStringContainsString( 436 436 'class="prev page-numbers" href="http://example.org/category/test"',
Note: See TracChangeset
for help on using the changeset viewer.