for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SMW\ApprovedRevs\Tests;
use SMW\ApprovedRevs\ApprovedRevsFacade;
/**
* @covers \SMW\ApprovedRevs\ApprovedRevsFacade
* @group semantic-approved-revs
*
* @license GNU GPL v2+
* @since 1.0
* @author mwjames
*/
class ApprovedRevsFacadeTest extends \PHPUnit_Framework_TestCase {
public function testCanConstruct() {
$this->assertInstanceOf(
ApprovedRevsFacade::class,
new ApprovedRevsFacade()
);
}
public function testGetApprovedRevID() {
$title = $this->getMockBuilder( '\Title' )
->disableOriginalConstructor()
->getMock();
$instance = new ApprovedRevsFacade();
$this->assertNull(
$instance->getApprovedRevID( $title )
public function testHasApprovedRevision() {
$this->assertInternalType(
'boolean',
$instance->hasApprovedRevision( $title )
public function testGetApprovedFileInfo() {
'array',
$instance->getApprovedFileInfo( $title )