Hoo man has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/386583 )
Change subject: Skip StatementBoostScoreBuilderTest if Cirrus is not installed ...................................................................... Skip StatementBoostScoreBuilderTest if Cirrus is not installed Will fix Travis: https://travis-ci.org/wikimedia/mediawiki-extensions-Wikibase/jobs/292748251 Change-Id: Ic4a1f29f1b1cd423770416ad6c0f393c5984b9c8 --- M repo/tests/phpunit/includes/Search/Elastic/StatementBoostScoreBuilderTest.php 1 file changed, 5 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase refs/changes/83/386583/1 diff --git a/repo/tests/phpunit/includes/Search/Elastic/StatementBoostScoreBuilderTest.php b/repo/tests/phpunit/includes/Search/Elastic/StatementBoostScoreBuilderTest.php index bddeb74..c39bcc0 100644 --- a/repo/tests/phpunit/includes/Search/Elastic/StatementBoostScoreBuilderTest.php +++ b/repo/tests/phpunit/includes/Search/Elastic/StatementBoostScoreBuilderTest.php @@ -2,6 +2,7 @@ namespace Wikibase\Repo\Search\Elastic\Tests; +use CirrusSearch; use CirrusSearch\HashSearchConfig; use CirrusSearch\Search\FunctionScoreDecorator; use CirrusSearch\Search\SearchContext; @@ -54,6 +55,10 @@ * @dataProvider statementBoostProvider */ public function testStatementBoosts( $weight, array $settings, array $functions ) { + if ( !class_exists( CirrusSearch::class ) ) { + $this->markTestSkipped( 'CirrusSearch needed.' ); + } + $config = new HashSearchConfig( [] ); $context = new SearchContext( $config, null ); $builder = new StatementBoostScoreBuilder( $context, $weight, $settings ); -- To view, visit https://gerrit.wikimedia.org/r/386583 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic4a1f29f1b1cd423770416ad6c0f393c5984b9c8 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: Hoo man <h...@online.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits