X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fsearch%2FSearchSuggestionSetTest.php;h=02fa5e9cac0bae5d4a3d10f399bb8fa4a96130dd;hp=28c69fa4b1c630e187cc6a4dce8b7511b810814c;hb=f17f841a9dfa1bee3f8ed47a09f06d1226452573;hpb=04d149b816c23b9a35db9e2258ee43eb04edd2d6 diff --git a/tests/phpunit/includes/search/SearchSuggestionSetTest.php b/tests/phpunit/includes/search/SearchSuggestionSetTest.php index 28c69fa4b1..02fa5e9cac 100644 --- a/tests/phpunit/includes/search/SearchSuggestionSetTest.php +++ b/tests/phpunit/includes/search/SearchSuggestionSetTest.php @@ -19,10 +19,11 @@ * http://www.gnu.org/copyleft/gpl.html */ -class SearchSuggestionSetTest extends \PHPUnit_Framework_TestCase { +class SearchSuggestionSetTest extends \PHPUnit\Framework\TestCase { /** * Test that adding a new suggestion at the end * will keep proper score ordering + * @covers SearchSuggestionSet::append */ public function testAppend() { $set = SearchSuggestionSet::emptySuggestionSet(); @@ -54,6 +55,9 @@ class SearchSuggestionSetTest extends \PHPUnit_Framework_TestCase { /** * Test that adding a new best suggestion will keep proper score * ordering + * @covers SearchSuggestionSet::getWorstScore + * @covers SearchSuggestionSet::getBestScore + * @covers SearchSuggestionSet::prepend */ public function testInsertBest() { $set = SearchSuggestionSet::emptySuggestionSet(); @@ -88,6 +92,9 @@ class SearchSuggestionSetTest extends \PHPUnit_Framework_TestCase { $this->assertEquals( $sorted, $scores ); } + /** + * @covers SearchSuggestionSet::shrink + */ public function testShrink() { $set = SearchSuggestionSet::emptySuggestionSet(); for ( $i = 0; $i < 100; $i++ ) {