diff options
Diffstat (limited to 'SemanticMediaWiki/tests/phpunit/Regression/PageWithTemplateInclusionRegressionTest.php')
-rw-r--r-- | SemanticMediaWiki/tests/phpunit/Regression/PageWithTemplateInclusionRegressionTest.php | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/SemanticMediaWiki/tests/phpunit/Regression/PageWithTemplateInclusionRegressionTest.php b/SemanticMediaWiki/tests/phpunit/Regression/PageWithTemplateInclusionRegressionTest.php deleted file mode 100644 index d187faf2..00000000 --- a/SemanticMediaWiki/tests/phpunit/Regression/PageWithTemplateInclusionRegressionTest.php +++ /dev/null @@ -1,70 +0,0 @@ -<?php - -namespace SMW\Tests\Regression; - -use SMW\Tests\Util\SemanticDataValidator; -use SMW\Tests\Util\ByPageSemanticDataFinder; -use SMW\Test\MwRegressionTestCase; - -use SMW\DIProperty; - -use Title; - -/** - * @ingroup Test - * - * @group SMW - * @group SMWExtension - * @group semantic-mediawiki-regression - * @group mediawiki-database - * @group Database - * @group medium - * - * @licence GNU GPL v2+ - * @since 1.9.1 - * - * @author mwjames - */ -class PageWithTemplateInclusionRegressionTest extends MwRegressionTestCase { - - public function getSourceFile() { - return __DIR__ . '/data/' . 'PageWithTemplateInclusionRegressionTest-Mw-1-19-7.xml'; - } - - public function acquirePoolOfTitles() { - return array( - 'Foo-1-19-7', - 'Template:FooAsk', - 'Template:FooShow', - 'Template:FooSubobject', - 'Template:FooTemplate' - ); - } - - public function assertDataImport() { - - $expectedProperties = array( - 'properties' => array( - DIProperty::newFromUserLabel( 'Foo' ), - DIProperty::newFromUserLabel( 'Quux' ), - new DIProperty( '_ASK' ), - new DIProperty( '_MDAT' ), - new DIProperty( '_SKEY' ), - new DIProperty( '_SOBJ' ), - new DIProperty( '_INST' ) - ) - ); - - $title = Title::newFromText( 'Foo-1-19-7' ); - $semanticDataValidator = new SemanticDataValidator; - - $semanticDataFinder = new ByPageSemanticDataFinder; - $semanticDataFinder->setTitle( $title )->setStore( $this->getStore() ); - - $semanticDataValidator->assertThatPropertiesAreSet( - $expectedProperties, - $semanticDataFinder->fetchFromOutput() - ); - } - -} |