diff options
Diffstat (limited to 'SemanticMediaWiki/tests/phpunit/includes/MediaWiki/Hooks/GetPreferencesTest.php')
-rw-r--r-- | SemanticMediaWiki/tests/phpunit/includes/MediaWiki/Hooks/GetPreferencesTest.php | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/SemanticMediaWiki/tests/phpunit/includes/MediaWiki/Hooks/GetPreferencesTest.php b/SemanticMediaWiki/tests/phpunit/includes/MediaWiki/Hooks/GetPreferencesTest.php deleted file mode 100644 index e2daf5e7..00000000 --- a/SemanticMediaWiki/tests/phpunit/includes/MediaWiki/Hooks/GetPreferencesTest.php +++ /dev/null @@ -1,52 +0,0 @@ -<?php - -namespace SMW\Tests\MediaWiki\Hooks; - -use SMW\MediaWiki\Hooks\GetPreferences; - -/** - * @covers \SMW\MediaWiki\Hooks\GetPreferences - * - * @ingroup Test - * - * @group SMW - * @group SMWExtension - * - * @license GNU GPL v2+ - * @since 2.0 - * - * @author mwjames - */ -class GetPreferencesTest extends \PHPUnit_Framework_TestCase { - - public function testCanConstruct() { - - $user = $this->getMockBuilder( '\User' ) - ->disableOriginalConstructor() - ->getMock(); - - $preferences = array(); - - $this->assertInstanceOf( - '\SMW\MediaWiki\Hooks\GetPreferences', - new GetPreferences( $user, $preferences ) - ); - } - - public function testProcess() { - - $user = $this->getMockBuilder( '\User' ) - ->disableOriginalConstructor() - ->getMock(); - - $preferences = array(); - - $instance = new GetPreferences( $user, $preferences ); - $instance->process(); - - $this->assertArrayHasKey( 'smw-prefs-intro', $preferences ); - $this->assertArrayHasKey( 'smw-prefs-ask-options-tooltip-display', $preferences ); - $this->assertArrayHasKey( 'smw-prefs-ask-options-collapsed-default', $preferences ); - } - -} |