summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/Page/ConceptPageTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/Page/ConceptPageTest.php')
-rw-r--r--www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/Page/ConceptPageTest.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/Page/ConceptPageTest.php b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/Page/ConceptPageTest.php
new file mode 100644
index 00000000..0206a2a1
--- /dev/null
+++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/Page/ConceptPageTest.php
@@ -0,0 +1,36 @@
+<?php
+
+namespace SMW\Tests\Page;
+
+use SMW\DIWikiPage;
+use SMW\Page\ConceptPage;
+
+/**
+ * @covers \SMW\Page\ConceptPage
+ * @group semantic-mediawiki
+ *
+ * @license GNU GPL v2+
+ * @since 3.0
+ *
+ * @author mwjames
+ */
+class ConceptPageTest extends \PHPUnit_Framework_TestCase {
+
+ private $title;
+
+ protected function setUp() {
+ parent::setUp();
+
+ $subject = DIWikiPage::newFromText( __METHOD__, SMW_NS_CONCEPT );
+ $this->title = $subject->getTitle();
+ }
+
+ public function testCanConstruct() {
+
+ $this->assertInstanceOf(
+ ConceptPage::class,
+ new ConceptPage( $this->title )
+ );
+ }
+
+}