summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/MediaWiki/Exception/ExtendedPermissionsErrorTest.php
blob: ae5ebd2bdbc6454837ca821fc6eb72343263d23b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php

namespace SMW\Tests\MediaWiki\Exception;

use SMW\MediaWiki\Exception\ExtendedPermissionsError;

/**
 * @covers \SMW\MediaWiki\Exception\ExtendedPermissionsError
 * @group semantic-mediawiki
 *
 * @license GNU GPL v2+
 * @since 2.5
 *
 * @author mwjames
 */
class ExtendedPermissionsErrorTest extends \PHPUnit_Framework_TestCase {

	public function testCanConstruct() {

		$this->assertInstanceOf(
			'\SMW\MediaWiki\Exception\ExtendedPermissionsError',
			new ExtendedPermissionsError( 'Foo' )
		);

		$this->assertInstanceOf(
			'\PermissionsError',
			new ExtendedPermissionsError( 'Foo' )
		);
	}

}