diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/Utils/HtmlModalTest.php')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/Utils/HtmlModalTest.php | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/Utils/HtmlModalTest.php b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/Utils/HtmlModalTest.php new file mode 100644 index 00000000..72401c73 --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/Utils/HtmlModalTest.php @@ -0,0 +1,47 @@ +<?php + +namespace SMW\Tests\Utils; + +use SMW\Utils\HtmlModal; + +/** + * @covers \SMW\Utils\HtmlModal + * @group semantic-mediawiki + * + * @license GNU GPL v2+ + * @since 3.0 + * + * @author mwjames + */ +class HtmlModalTest extends \PHPUnit_Framework_TestCase { + + public function testGetModules() { + + $this->assertInternalType( + 'array', + HtmlModal::getModules() + ); + + $this->assertInternalType( + 'array', + HtmlModal::getModuleStyles() + ); + } + + public function testLink() { + + $this->assertContains( + 'smw-modal-link', + HtmlModal::link( 'Foo' ) + ); + } + + public function testModal() { + + $this->assertContains( + 'smw-modal', + HtmlModal::modal( 'Foo' ) + ); + } + +} |