for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace WikidataQueryApi\Query;
use Wikibase\DataModel\Entity\ItemId;
use Wikibase\DataModel\Entity\PropertyId;
/**
* @covers WikidataQueryApi\Query\ClaimQuery
*
* @licence GPLv2+
* @author Thomas Pellissier Tanon
*/
class ClaimQueryTest extends \PHPUnit_Framework_TestCase {
public function testGetPropertyId() {
$query = new ClaimQuery( new PropertyId( 'P42' ), new ItemId( 'Q42' ) );
$this->assertEquals( new PropertyId( 'P42' ), $query->getPropertyId() );
}
public function testGetItemId() {
$this->assertEquals( new ItemId( 'Q42' ), $query->getItemId() );
public function testGetType() {
$query = new ClaimQuery( new PropertyId( 'P42' ) );
$this->assertEquals( 'claim', $query->getType() );