From daf20e5c8cf17e4a2905dc183f5199bfcc273cef Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sat, 3 Nov 2012 19:37:02 +0100 Subject: [PATCH] update export-demo.xml to version-0.8.xsd Add a assertion to the validation test to ensure, export-demo.xml is updated next time, when a new version is created. Change-Id: I004ca23d848dd6701acb45e9b755397b434370c4 --- docs/export-demo.xml | 18 +++++++++++++----- tests/phpunit/docs/ExportDemoTest.php | 3 +++ 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/docs/export-demo.xml b/docs/export-demo.xml index d198b93c8a..591f675c58 100644 --- a/docs/export-demo.xml +++ b/docs/export-demo.xml @@ -1,4 +1,4 @@ - + @@ -79,8 +79,10 @@ I have just one thing to say! - 5x0ux8iwjrbmfzgv6pkketxgkcnpr7h A bunch of [[text]] here. + 5x0ux8iwjrbmfzgv6pkketxgkcnpr7h + wikitext + text/x-wiki @@ -90,8 +92,10 @@ 10.0.0.2 new! - etaxt3shcge6igz1biwy3d4um2pnle4 An earlier [[revision]]. + etaxt3shcge6igz1biwy3d4um2pnle4 + wikitext + text/x-wiki @@ -104,8 +108,10 @@ 2001-01-15T14:03:00Z 10.0.0.2 hey - ml80vmyjlixdstnywwihx003exfzq9j WHYD YOU LOCK PAGE??!!! i was editing that jerk + ml80vmyjlixdstnywwihx003exfzq9j + wikitext + text/x-wiki @@ -118,8 +124,10 @@ 2001-01-15T20:34:12Z Foobar42 My awesomeest image! - mehom37npwkpzhaiwu3wyr0egalumki This is an awesome little imgae. I lurves it. {{PD}} + mehom37npwkpzhaiwu3wyr0egalumki + wikitext + text/x-wiki 2001-01-15T20:34:12Z diff --git a/tests/phpunit/docs/ExportDemoTest.php b/tests/phpunit/docs/ExportDemoTest.php index ce65d494b5..211de261e6 100644 --- a/tests/phpunit/docs/ExportDemoTest.php +++ b/tests/phpunit/docs/ExportDemoTest.php @@ -26,6 +26,9 @@ class ExportDemoTest extends DumpTestCase { $dom = new DomDocument(); $dom->load( $fname ); + // Ensure, the demo is for the current version + $this->assertEquals( $dom->documentElement->getAttribute( 'version' ), $version, 'export-demo.xml should have the current version' ); + try { $this->assertTrue( $dom->schemaValidate( "../../docs/export-" . $version . ".xsd" ), "schemaValidate has found an error" ); -- 2.20.1