Skip to content

Commit

Permalink
Add temporary workaround to be able to make Wikibase PSR-4 compatible
Browse files Browse the repository at this point in the history
This is a requirement to be able to make the Wikibase\Repo\Tests\…
namespace in Wikibase.git PSR-4 compatible without breaking CI and
builds. The same workaround must be applied in PropertySuggester and
WikibaseQualityExternalValidation.
  • Loading branch information
thiemowmde committed Dec 7, 2016
1 parent b1c1518 commit 031fabb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/phpunit/PropertySuggester/GetSuggestionsTest.php
Expand Up @@ -7,7 +7,12 @@
use Wikibase\DataModel\Entity\EntityId;
use Wikibase\DataModel\Entity\Property;
use Wikibase\Repo\WikibaseRepo;
use Wikibase\Test\Repo\Api\WikibaseApiTestCase;
use Wikibase\Repo\Tests\Api\WikibaseApiTestCase;

// FIXME: Remove this temporary workaround after the Wikibase class was moved.
if ( !class_exists( WikibaseApiTestCase::class ) ) {
class_alias( \Wikibase\Test\Repo\Api\WikibaseApiTestCase::class, WikibaseApiTestCase::class );
}

/**
* @covers PropertySuggester\GetSuggestions
Expand Down

0 comments on commit 031fabb

Please sign in to comment.