Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions tests/phpunit/tests/general/paginateLinks.php
Original file line number Diff line number Diff line change
Expand Up @@ -565,4 +565,19 @@ public static function data_query_strings(): array {
'multi query vars' => array( 'foo=bar&pen=pencil' ),
);
}

/**
* Tests that paginate_links() returns null when there is only one page.
*
* @ticket 66827
*/
public function test_paginate_links_returns_null_for_a_single_page() {
$this->assertNull(
paginate_links(
array(
'total' => '1',
)
)
);
}
}
Loading