48 lines
1.0 KiB
PHP
48 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace SMW\Tests\Property;
|
|
|
|
use SMW\Property\DeclarationExaminerFactory;
|
|
|
|
/**
|
|
* @covers \SMW\Property\DeclarationExaminerFactory
|
|
* @group semantic-mediawiki
|
|
*
|
|
* @license GPL-2.0-or-later
|
|
* @since 3.1
|
|
*
|
|
* @author mwjames
|
|
*/
|
|
class DeclarationExaminerFactoryTest extends \PHPUnit\Framework\TestCase {
|
|
|
|
public function testCanConstruct() {
|
|
$this->assertInstanceOf(
|
|
DeclarationExaminerFactory::class,
|
|
new DeclarationExaminerFactory()
|
|
);
|
|
}
|
|
|
|
public function testCanConstructDeclarationExaminerMsgBuilder() {
|
|
$instance = new DeclarationExaminerFactory();
|
|
|
|
$this->assertInstanceOf(
|
|
'\SMW\Property\DeclarationExaminerMsgBuilder',
|
|
$instance->newDeclarationExaminerMsgBuilder()
|
|
);
|
|
}
|
|
|
|
public function testCanConstructDeclarationExaminer() {
|
|
$store = $this->getMockBuilder( '\SMW\Store' )
|
|
->disableOriginalConstructor()
|
|
->getMockForAbstractClass();
|
|
|
|
$instance = new DeclarationExaminerFactory();
|
|
|
|
$this->assertInstanceOf(
|
|
'\SMW\Property\DeclarationExaminer',
|
|
$instance->newDeclarationExaminer( $store )
|
|
);
|
|
}
|
|
|
|
}
|