Skip to content

Commit

Permalink
Release 3.1.6 (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
thiemowmde authored and manicki committed Jan 3, 2017
1 parent 9f7db50 commit ff73f66
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion PropertySuggester.php
Expand Up @@ -9,7 +9,7 @@
return;
}

define( 'PropertySuggester_VERSION', '3.1.5' );
define( 'PropertySuggester_VERSION', '3.1.6' );

if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require_once __DIR__ . '/vendor/autoload.php';
Expand Down
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -45,6 +45,9 @@ generate this data from a wikidata dump.

## Release notes

### 3.1.6 (2017-01-03)
* Adapted entity suggester for changes in Wikibase.

### 3.1.5 (2016-12-02)
* Adapted entity suggester for changes in Wikibase.

Expand Down
9 changes: 2 additions & 7 deletions tests/phpunit/PropertySuggester/GetSuggestionsTest.php
Expand Up @@ -3,17 +3,12 @@
namespace PropertySuggester;

use ApiMain;
use UsageException;
use ApiUsageException;
use Wikibase\DataModel\Entity\EntityId;
use Wikibase\DataModel\Entity\Property;
use Wikibase\Repo\WikibaseRepo;
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
* @covers PropertySuggester\ResultBuilder
Expand Down Expand Up @@ -135,7 +130,7 @@ public function testExecutionWithInvalidContext() {
'context' => 'delete all the things!'
);

$this->setExpectedException( UsageException::class );
$this->setExpectedException( ApiUsageException::class );
$this->doApiRequest( $params );
}

Expand Down

0 comments on commit ff73f66

Please sign in to comment.