Beispiel #1
0
 public function testSpecialPageProducesCorrectHistoryModel()
 {
     $this->format = 'turtle';
     $parser = MwRdf::Parser('turtle');
     $this->prepareRequest(null, array('history'));
     $text = wfRdfSpecialPage(null);
     $model = MwRdf::Model();
     $model->loadStatementsFromString($parser, $text);
     $expect = MwRdfTest::createExpectedHistoryModel();
     $this->assertModelEqualsModel($expect, $model);
 }
 public function testHistoryModel()
 {
     $this->agent->registerModelMaker('MwRdf_History_Modeler');
     $model = $this->agent->buildModel('history');
     $expect = MwRdfTest::createExpectedHistoryModel();
     $this->assertModelEqualsModel($expect, $model);
 }